[ofa-general] [PATCH] opensm: rename __osm_epi_plugin_t to osm_event_plugin_t

Sasha Khapyorsky sashak at voltaire.com
Fri Dec 21 11:52:07 PST 2007


Rename __osm_epi_plugin_t to osm_event_plugin_t.

Signed-off-by: Sasha Khapyorsky <sashak at voltaire.com>
---
 opensm/include/opensm/osm_event_plugin.h   |    6 +++---
 opensm/opensm/osm_event_plugin.c           |    2 +-
 opensm/osmeventplugin/src/osmeventplugin.c |    2 +-
 3 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/opensm/include/opensm/osm_event_plugin.h b/opensm/include/opensm/osm_event_plugin.h
index 0b69d48..b71f6f7 100644
--- a/opensm/include/opensm/osm_event_plugin.h
+++ b/opensm/include/opensm/osm_event_plugin.h
@@ -149,7 +149,7 @@ typedef struct {
  */
 #define OSM_EVENT_PLUGIN_IMPL_NAME "osm_event_plugin"
 #define OSM_EVENT_PLUGIN_INTERFACE_VER (1)
-typedef struct {
+typedef struct osm_event_plugin {
 	int interface_version;
 	void *(*construct) (osm_log_t * osm_log);
 	void (*destroy) (void *plugin_data);
@@ -157,14 +157,14 @@ typedef struct {
 	void (*report) (void *plugin_data,
 			osm_epi_event_id_t event_id, void *event_data);
 
-} __osm_epi_plugin_t;
+} osm_event_plugin_t;
 
 /** =========================================================================
  * The plugin structure should be considered opaque
  */
 typedef struct {
 	void *handle;
-	__osm_epi_plugin_t *impl;
+	osm_event_plugin_t *impl;
 	void *plugin_data;
 	osm_log_t *p_log;
 	char *plugin_name;
diff --git a/opensm/opensm/osm_event_plugin.c b/opensm/opensm/osm_event_plugin.c
index 5f062cf..5ffb255 100644
--- a/opensm/opensm/osm_event_plugin.c
+++ b/opensm/opensm/osm_event_plugin.c
@@ -83,7 +83,7 @@ osm_epi_plugin_t *osm_epi_construct(osm_log_t * p_log, char *plugin_name)
 	}
 
 	rc->impl =
-	    (__osm_epi_plugin_t *) dlsym(rc->handle,
+	    (osm_event_plugin_t *) dlsym(rc->handle,
 					 OSM_EVENT_PLUGIN_IMPL_NAME);
 	if (!rc->impl) {
 		osm_log(p_log, OSM_LOG_ERROR,
diff --git a/opensm/osmeventplugin/src/osmeventplugin.c b/opensm/osmeventplugin/src/osmeventplugin.c
index 5adf87d..6cc4c70 100644
--- a/opensm/osmeventplugin/src/osmeventplugin.c
+++ b/opensm/osmeventplugin/src/osmeventplugin.c
@@ -171,7 +171,7 @@ static void report(void *_log, osm_epi_event_id_t event_id, void *event_data)
 /** =========================================================================
  * Define the object symbol for loading
  */
-__osm_epi_plugin_t osm_event_plugin = {
+osm_event_plugin_t osm_event_plugin = {
       interface_version:OSM_EVENT_PLUGIN_INTERFACE_VER,
       construct:construct,
       destroy:destroy,
-- 
1.5.3.4.206.g58ba4




More information about the general mailing list