From 006180acd77e3f215e544ac9aa3562f781271475 Mon Sep 17 00:00:00 2001 From: Cosimo Cecchi Date: Thu, 5 Jun 2008 19:30:13 +0200 Subject: [PATCH] Add a test for client side implementation --- test/clients/test-applications.c | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 test/clients/test-applications.c diff --git a/test/clients/test-applications.c b/test/clients/test-applications.c new file mode 100644 index 0000000..c16522c --- /dev/null +++ b/test/clients/test-applications.c @@ -0,0 +1,31 @@ +/* test program for libmmanager */ + +#include +#include +#include +#include +#include +#include + +int main (int argc, char **argv) +{ + MMManager *manager; + GList *applications, *l; + GDesktopAppInfo *info; + MMApplication *app; + + g_type_init (); + + manager = mm_manager_get (); + applications = mm_manager_get_application_list (manager); + + for (l = applications; l; l = l->next) { + app = l->data; + info = mm_application_get_app_info (app); + g_print ("found application %s\n", g_app_info_get_name (G_APP_INFO (info))); + } + + g_print ("end of list\n"); + + return 0; +} -- 2.11.4.GIT