Module: sip-router
Branch: master
Commit: bffe87d58679020d26a650fbd0535536a0213096
URL:
http://git.sip-router.org/cgi-bin/gitweb.cgi/sip-router/?a=commit;h=bffe87d…
Author: Daniel-Constantin Mierla <miconda(a)gmail.com>
Committer: Daniel-Constantin Mierla <miconda(a)gmail.com>
Date: Mon Nov 15 19:33:05 2010 +0100
tm: small wrapper for exporting API
- tm_load_api() added as wrapper to load_tm_api() to match the common
pattern for naming module exporting API functions
---
modules/tm/tm_load.h | 9 ++++++++-
1 files changed, 8 insertions(+), 1 deletions(-)
diff --git a/modules/tm/tm_load.h b/modules/tm/tm_load.h
index 5436914..e4829ac 100644
--- a/modules/tm/tm_load.h
+++ b/modules/tm/tm_load.h
@@ -131,10 +131,12 @@ struct tm_binds {
#endif
};
+typedef struct tm_binds tm_api_t;
+
extern int tm_init;
typedef int(*load_tm_f)( struct tm_binds *tmb );
-int load_tm( struct tm_binds *tmb);
+int load_tm(struct tm_binds *tmb);
static inline int load_tm_api(struct tm_binds* tmb)
@@ -156,4 +158,9 @@ static inline int load_tm_api(struct tm_binds* tmb)
return 0;
}
+static inline int tm_load_api(tm_api_t *tmb)
+{
+ return load_tm_api(tmb);
+}
+
#endif