summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHarald Welte <laforge@gnumonks.org>2013-09-27 22:42:41 +0200
committerHarald Welte <laforge@gnumonks.org>2013-09-29 14:56:44 +0200
commita72236a1d0effb1fe985f5685d40e6dc33ab65a3 (patch)
treeb4ab5e143ff7631ee53f8691ce4a713f33c3f587 /include
parent292e73a08c3445b4aa96057e559dbcec44b0d8f7 (diff)
permit gsmd and libgsm to handle multiple instances
By using differntly-named unix domain sockets, we can run multiple gsmd instances in parallel.
Diffstat (limited to 'include')
-rw-r--r--include/gsmd/gsmd.h1
-rw-r--r--include/libgsmd/libgsmd.h1
2 files changed, 2 insertions, 0 deletions
diff --git a/include/gsmd/gsmd.h b/include/gsmd/gsmd.h
index 585d78d..47bc43d 100644
--- a/include/gsmd/gsmd.h
+++ b/include/gsmd/gsmd.h
@@ -74,6 +74,7 @@ struct gsmd;
#define GSMD_ATCMD_TIMEOUT 60 /* If doesn get respond within 60 secs, discard */
struct gsmd {
+ unsigned int instance;
unsigned int flags;
int interpreter_ready;
struct gsmd_fd gfd_uart;
diff --git a/include/libgsmd/libgsmd.h b/include/libgsmd/libgsmd.h
index a6a4252..3fce0f0 100644
--- a/include/libgsmd/libgsmd.h
+++ b/include/libgsmd/libgsmd.h
@@ -49,6 +49,7 @@ typedef int lgsm_msg_handler(struct lgsm_handle *lh, struct gsmd_msg_hdr *gmh);
/* initialize usage of libgsmd, obtain handle for othe API calls */
extern struct lgsm_handle *lgsm_init(const char *device);
+extern struct lgsm_handle *lgsm_init_inst(unsigned int instance);
/* Terminate usage of libgsmd */
extern int lgsm_exit(struct lgsm_handle *lh);
personal git repositories of Harald Welte. Your mileage may vary