summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso <pablo@gnumonks.org>2011-05-07 12:50:08 +0200
committerPablo Neira Ayuso <pablo@gnumonks.org>2011-05-07 13:00:52 +0200
commit2c34867fc3250186474c1f1c3a20c2a01285e974 (patch)
treef4864d8af5eb80aa762bb5e31c0c93fdf67b1a47
parent619b8b3292d30452523705fbddf269defe81ca39 (diff)
plugin: use namespace prefix osmo_*
Summary of changes: s/plugin_load_all/osmo_plugin_load_all/g
-rw-r--r--include/osmocom/core/plugin.h2
-rw-r--r--src/gsm/gprs_cipher_core.c2
-rw-r--r--src/plugin.c4
3 files changed, 4 insertions, 4 deletions
diff --git a/include/osmocom/core/plugin.h b/include/osmocom/core/plugin.h
index 98f9b56d..6c0eccc6 100644
--- a/include/osmocom/core/plugin.h
+++ b/include/osmocom/core/plugin.h
@@ -1,6 +1,6 @@
#ifndef _OSMO_PLUGIN_H
#define _OSMO_PLUGIN_H
-int plugin_load_all(const char *directory);
+int osmo_plugin_load_all(const char *directory);
#endif
diff --git a/src/gsm/gprs_cipher_core.c b/src/gsm/gprs_cipher_core.c
index 0ff85e2d..7884be01 100644
--- a/src/gsm/gprs_cipher_core.c
+++ b/src/gsm/gprs_cipher_core.c
@@ -53,7 +53,7 @@ int gprs_cipher_register(struct gprs_cipher_impl *ciph)
int gprs_cipher_load(const char *path)
{
/* load all plugins available from path */
- return plugin_load_all(path);
+ return osmo_plugin_load_all(path);
}
/* function to be called by core code */
diff --git a/src/plugin.c b/src/plugin.c
index 4d9fd314..998bca35 100644
--- a/src/plugin.c
+++ b/src/plugin.c
@@ -32,7 +32,7 @@
#include <osmocom/core/plugin.h>
-int plugin_load_all(const char *directory)
+int osmo_plugin_load_all(const char *directory)
{
unsigned int num = 0;
char fname[PATH_MAX];
@@ -55,7 +55,7 @@ int plugin_load_all(const char *directory)
return num;
}
#else
-int plugin_load_all(const char *directory)
+int osmo_plugin_load_all(const char *directory)
{
return 0;
}