More work on getting net to compile.

SVN revision: 46981
This commit is contained in:
Christopher Michael 2010-03-08 06:23:08 +00:00
parent bd897a0606
commit 4a7c33e669
4 changed files with 11 additions and 11 deletions

View File

@ -23,7 +23,7 @@ _net_config_item_get(const char *id)
p = strrchr(ci->id, '.'); p = strrchr(ci->id, '.');
if (p) num = atoi(p + 1) + 1; if (p) num = atoi(p + 1) + 1;
} }
snprintf(buf, sizeof(buf), "%s.%d", _gc_name(), num); snprintf(buf, sizeof(buf), "%s.%d", _net_gc_name(), num);
id = buf; id = buf;
} }
else else

View File

@ -113,20 +113,20 @@ _gc_id_new(E_Gadcon_Client_Class *client_class)
return ci->id; return ci->id;
} }
EINTERN void void
_gc_register(void) _net_gc_register(void)
{ {
e_gadcon_provider_register(&_gc_class); e_gadcon_provider_register(&_gc_class);
} }
EINTERN void void
_gc_unregister(void) _net_gc_unregister(void)
{ {
e_gadcon_provider_unregister(&_gc_class); e_gadcon_provider_unregister(&_gc_class);
} }
EINTERN const char * const char *
_gc_name(void) _net_gc_name(void)
{ {
return _gc_class.name; return _gc_class.name;
} }

View File

@ -1,8 +1,8 @@
#ifndef E_MOD_GADCON_H #ifndef E_MOD_GADCON_H
#define E_MOD_GADCON_H #define E_MOD_GADCON_H
EINTERN void _gc_register(void); void _net_gc_register(void);
EINTERN void _gc_unregister(void); void _net_gc_unregister(void);
EINTERN const char *_gc_name(void); const char *_net_gc_name(void);
#endif #endif

View File

@ -5,7 +5,7 @@
static E_Config_DD *conf_edd = NULL; static E_Config_DD *conf_edd = NULL;
static E_Config_DD *item_edd = NULL; static E_Config_DD *item_edd = NULL;
EINTERN Config *net_cfg = NULL; Config *net_cfg = NULL;
EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Net" }; EAPI E_Module_Api e_modapi = { E_MODULE_API_VERSION, "Net" };