Fixed #374055:Only the first "tag" is detected in digikam.
[beagle.git] / libbeagle / examples / beagle-info.c
blobbfa3348139e5c064eadb4cbdbb298a9743b41b17
1 #include <beagle/beagle.h>
3 static void
4 test_daemon_information (BeagleClient *client)
6 BeagleDaemonInformationRequest *request;
7 BeagleResponse *response;
8 gboolean get_version = TRUE, get_info = TRUE, get_status = TRUE, is_indexing = TRUE;
10 request = beagle_daemon_information_request_new_specific (get_version,
11 get_info,
12 get_status,
13 is_indexing
15 response = beagle_client_send_request (client, BEAGLE_REQUEST (request), NULL);
17 g_object_unref (request);
19 if (get_version)
20 g_print ("Beagle version: %s\n", beagle_daemon_information_response_get_version (BEAGLE_DAEMON_INFORMATION_RESPONSE (response)));
21 if (get_info)
22 g_print ("%s\n", beagle_daemon_information_response_get_human_readable_status (BEAGLE_DAEMON_INFORMATION_RESPONSE (response)));
23 if (get_status)
24 g_print ("%s\n", beagle_daemon_information_response_get_index_information (BEAGLE_DAEMON_INFORMATION_RESPONSE (response)));
25 if (is_indexing)
26 g_print ("%s\n", (beagle_daemon_information_response_is_indexing (BEAGLE_DAEMON_INFORMATION_RESPONSE (response)) ? "Indexing" : "Not Indexing"));
28 g_object_unref (response);
31 int
32 main ()
34 BeagleClient *client;
36 g_type_init ();
38 client = beagle_client_new (NULL);
39 test_daemon_information (client);
41 return 0;