summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
3bea00b)
+lttv_attributes *lttv_global_attributes()
+{
+ return attributes_global;
+}
+
+
void lttv_module_option(void *hook_data)
{
lttv_module_load(aModule,aArgc,aArgv,STANDALONE);
void lttv_module_option(void *hook_data)
{
lttv_module_load(aModule,aArgc,aArgv,STANDALONE);
#include "lttv.h"
#include "option.h"
#include "hook.h"
#include "lttv.h"
#include "option.h"
#include "hook.h"
/* Extensible array of popt command line options. Modules add options as
they are loaded and initialized. */
/* Extensible array of popt command line options. Modules add options as
they are loaded and initialized. */
void *hook_data;
} lttv_option;
void *hook_data;
} lttv_option;
-extern lttv_attributes *attributes_global;
-
static GArray *lttv_options_command;
static GArray *lttv_options_command_popt;
static GArray *lttv_options_command;
static GArray *lttv_options_command_popt;
hooks_options_before = lttv_hooks_new();
hooks_options_after = lttv_hooks_new();
hooks_options_before = lttv_hooks_new();
hooks_options_after = lttv_hooks_new();
- lttv_attributes_set_pointer_pathname(attributes_global,
+ lttv_attributes_set_pointer_pathname(lttv_global_attributes(),
"hooks/options/before", hooks_options_before);
"hooks/options/before", hooks_options_before);
- lttv_attributes_set_pointer_pathname(attributes_global,
+ lttv_attributes_set_pointer_pathname(lttv_global_attributes(),
"hooks/options/after", hooks_options_after);
lttv_options_command_popt = g_array_new(0,0,sizeof(struct poptOption));
lttv_options_command = g_array_new(0,0,sizeof(lttv_option));
"hooks/options/after", hooks_options_after);
lttv_options_command_popt = g_array_new(0,0,sizeof(struct poptOption));
lttv_options_command = g_array_new(0,0,sizeof(lttv_option));
- hooks_init_after = lttv_attributes_get_pointer_pathname(attributes_global,
+ hooks_init_after = lttv_attributes_get_pointer_pathname(lttv_global_attributes(),
"hooks/init/after");
lttv_hooks_add(hooks_init_after, lttv_options_command_parse, NULL);
"hooks/init/after");
lttv_hooks_add(hooks_init_after, lttv_options_command_parse, NULL);
g_array_free(lttv_options_command_popt,TRUE) ;
g_array_free(lttv_options_command,TRUE) ;
g_array_free(lttv_options_command_popt,TRUE) ;
g_array_free(lttv_options_command,TRUE) ;
- lttv_attributes_set_pointer_pathname(attributes_global,
+ lttv_attributes_set_pointer_pathname(lttv_global_attributes(),
"hooks/options/before", NULL);
"hooks/options/before", NULL);
- lttv_attributes_set_pointer_pathname(attributes_global,
+ lttv_attributes_set_pointer_pathname(lttv_global_attributes(),
"hooks/options/after", NULL);
lttv_hooks_destroy(hooks_options_before);
"hooks/options/after", NULL);
lttv_hooks_destroy(hooks_options_before);