summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPablo Neira Ayuso2011-05-07 12:50:08 +0200
committerPablo Neira Ayuso2011-05-07 13:00:52 +0200
commit2c34867fc3250186474c1f1c3a20c2a01285e974 (patch)
treef4864d8af5eb80aa762bb5e31c0c93fdf67b1a47
parentbacktrace: use namespace prefix osmo_* (diff)
downloadlibosmocore-2c34867fc3250186474c1f1c3a20c2a01285e974.tar.gz
libosmocore-2c34867fc3250186474c1f1c3a20c2a01285e974.tar.xz
libosmocore-2c34867fc3250186474c1f1c3a20c2a01285e974.zip
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 98f9b56..6c0eccc 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 0ff85e2..7884be0 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 4d9fd31..998bca3 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;
}