X-Git-Url: http://git.lttng.org./?a=blobdiff_plain;f=ltt%2Fbranches%2Fpoly%2Flttv%2Fmain.c;h=a1bfcd087726a8f6349d3f4240fea13b0ac3ea7a;hb=a60b01efe39b298d94f0b5e19d8ca218647e301a;hp=ec131915dfd59a37c87fa8a59c3463f91a335c10;hpb=c432246e06bb83a3d43a6668517486fb6b4b959d;p=lttv.git diff --git a/ltt/branches/poly/lttv/main.c b/ltt/branches/poly/lttv/main.c index ec131915..a1bfcd08 100644 --- a/ltt/branches/poly/lttv/main.c +++ b/ltt/branches/poly/lttv/main.c @@ -41,10 +41,6 @@ static void lttv_module_option(void *hook_data); static void lttv_module_path_option(void *hook_data); -#ifdef MEMDEBUG -extern struct GMemVTable *glib_mem_profiler_table; -#endif - /* Since everything is done in modules, the main program only takes care of the infrastructure. */ @@ -59,6 +55,9 @@ int main(int argc, char **argv) { g_mem_profile(); #endif + g_type_init(); + //g_type_init_with_debug_flags (G_TYPE_DEBUG_OBJECTS | G_TYPE_DEBUG_SIGNALS); + attributes = LTTV_IATTRIBUTE(g_object_new(LTTV_ATTRIBUTE_TYPE, NULL)); before_options = lttv_hooks_new(); @@ -126,7 +125,7 @@ int main(int argc, char **argv) { LttvAttribute *lttv_global_attributes() { - return attributes; + return (LttvAttribute*)attributes; }