24
25
#include <stdlib.h>
27
main(int argc, char **argv)
28
main (int argc, char **argv)
30
char *name, *vendor, *version, *spec_version;
32
notify_init("TestCaps");
34
if (!notify_get_server_info(&name, &vendor, &version, &spec_version))
36
fprintf(stderr, "Failed to receive server info.\n");
40
printf("Name: %s\n", name);
41
printf("Vendor: %s\n", vendor);
42
printf("Version: %s\n", version);
43
printf("Spec Version: %s\n", spec_version);
44
printf("Capabilities:\n");
46
caps = notify_get_server_caps();
50
fprintf(stderr, "Failed to receive server caps.\n");
54
for (l = caps; l != NULL; l = l->next)
55
printf("\t%s\n", (char *)l->data);
57
g_list_foreach(caps, (GFunc)g_free, NULL);
31
char *name, *vendor, *version, *spec_version;
33
notify_init ("TestCaps");
35
if (!notify_get_server_info (&name, &vendor, &version, &spec_version)) {
36
fprintf (stderr, "Failed to receive server info.\n");
40
printf ("Name: %s\n", name);
41
printf ("Vendor: %s\n", vendor);
42
printf ("Version: %s\n", version);
43
printf ("Spec Version: %s\n", spec_version);
44
printf ("Capabilities:\n");
46
caps = notify_get_server_caps ();
49
fprintf (stderr, "Failed to receive server caps.\n");
53
for (l = caps; l != NULL; l = l->next)
54
printf ("\t%s\n", (char *) l->data);
56
g_list_foreach (caps, (GFunc) g_free, NULL);