svn rev #23904: branches/plugins/src/plugin_core/ impl/
tsitkova@MIT.EDU
tsitkova at MIT.EDU
Wed Apr 14 16:25:02 EDT 2010
http://src.mit.edu/fisheye/changelog/krb5/?cs=23904
Commit By: tsitkova
Log Message:
renamed factory_handle type
Changed Files:
U branches/plugins/src/plugin_core/impl/plugin_default_factory.c
U branches/plugins/src/plugin_core/impl/plugin_default_factory.h
U branches/plugins/src/plugin_core/impl/plugin_default_manager.c
U branches/plugins/src/plugin_core/plugin_factory.c
U branches/plugins/src/plugin_core/plugin_factory.h
Modified: branches/plugins/src/plugin_core/impl/plugin_default_factory.c
===================================================================
--- branches/plugins/src/plugin_core/impl/plugin_default_factory.c 2010-04-14 19:32:12 UTC (rev 23903)
+++ branches/plugins/src/plugin_core/impl/plugin_default_factory.c 2010-04-14 20:25:02 UTC (rev 23904)
@@ -48,11 +48,11 @@
}
-FactoryHandle
+factory_handle
plugin_default_factory_get_instance()
{
plugin_factory* instance = _default_factory_instance;
- FactoryHandle handle;
+ factory_handle handle;
if(_default_factory_instance == NULL) {
instance = (plugin_factory*) malloc(sizeof(plugin_factory));
Modified: branches/plugins/src/plugin_core/impl/plugin_default_factory.h
===================================================================
--- branches/plugins/src/plugin_core/impl/plugin_default_factory.h 2010-04-14 19:32:12 UTC (rev 23903)
+++ branches/plugins/src/plugin_core/impl/plugin_default_factory.h 2010-04-14 20:25:02 UTC (rev 23904)
@@ -8,7 +8,7 @@
#include <plugin_factory.h>
-FactoryHandle plugin_default_factory_get_instance(void);
+factory_handle plugin_default_factory_get_instance(void);
#endif /* SIMPLE_PLUGIN_FACTORY_H_ */
Modified: branches/plugins/src/plugin_core/impl/plugin_default_manager.c
===================================================================
--- branches/plugins/src/plugin_core/impl/plugin_default_manager.c 2010-04-14 19:32:12 UTC (rev 23903)
+++ branches/plugins/src/plugin_core/impl/plugin_default_manager.c 2010-04-14 20:25:02 UTC (rev 23904)
@@ -20,10 +20,10 @@
{NULL, NULL}
};
-static FactoryHandle
+static factory_handle
_load_factory (const char* factory_name, const char* factory_type)
{
- FactoryHandle handle;
+ factory_handle handle;
plugin_factory_descr *ptr = NULL;
handle.api = NULL;
@@ -75,7 +75,7 @@
const char* factory_type, config_node* properties)
{
plhandle p_handle;
- FactoryHandle f_handle = _load_factory(factory_name, factory_type);
+ factory_handle f_handle = _load_factory(factory_name, factory_type);
p_handle = create_api(f_handle, plugin_name);
return(p_handle);
Modified: branches/plugins/src/plugin_core/plugin_factory.c
===================================================================
--- branches/plugins/src/plugin_core/plugin_factory.c 2010-04-14 19:32:12 UTC (rev 23903)
+++ branches/plugins/src/plugin_core/plugin_factory.c 2010-04-14 20:25:02 UTC (rev 23904)
@@ -7,14 +7,14 @@
#include "plugin_factory.h"
void
-get_factory_content (FactoryHandle handle, const char* container[])
+get_factory_content (factory_handle handle, const char* container[])
{
plugin_factory* factory = (plugin_factory*) handle.api;
factory->get_factory_content(container);
}
plhandle
-create_api (FactoryHandle handle, const char* plugin_name)
+create_api (factory_handle handle, const char* plugin_name)
{
plugin_factory* factory = (plugin_factory*) handle.api;
return factory->create_api(plugin_name);
Modified: branches/plugins/src/plugin_core/plugin_factory.h
===================================================================
--- branches/plugins/src/plugin_core/plugin_factory.h 2010-04-14 19:32:12 UTC (rev 23903)
+++ branches/plugins/src/plugin_core/plugin_factory.h 2010-04-14 20:25:02 UTC (rev 23904)
@@ -10,11 +10,11 @@
/* Plugin factory API */
typedef struct {
void *api;
-} FactoryHandle;
+} factory_handle;
typedef struct {
const char* factory_name;
- FactoryHandle (*factory_creator)();
+ factory_handle (*factory_creator)();
} plugin_factory_descr;
typedef struct {
@@ -28,7 +28,7 @@
} plugin_factory;
/* Utility functions */
-void get_factory_content(FactoryHandle handle, const char* container[]);
-plhandle create_api(FactoryHandle handle, const char* plugin_name);
+void get_factory_content(factory_handle handle, const char* container[]);
+plhandle create_api(factory_handle handle, const char* plugin_name);
#endif /* PLUGIN_FACTORY_H_ */
More information about the cvs-krb5
mailing list