summaryrefslogtreecommitdiff
path: root/include/gsmd
diff options
context:
space:
mode:
Diffstat (limited to 'include/gsmd')
-rw-r--r--include/gsmd/machineplugin.h24
1 files changed, 24 insertions, 0 deletions
diff --git a/include/gsmd/machineplugin.h b/include/gsmd/machineplugin.h
new file mode 100644
index 0000000..aee5d65
--- /dev/null
+++ b/include/gsmd/machineplugin.h
@@ -0,0 +1,24 @@
+#ifndef _GSMD_MACHINEPLUG_H
+#define _GSMD_MACHINEPLUG_H
+
+#ifdef __GSMD__
+
+#include <common/linux_list.h>
+#include <gsmd/gsmd.h>
+
+struct gsmd;
+
+struct gsmd_machine_plugin {
+ struct llist_head list;
+ unsigned char *name;
+ int (*detect)(struct gsmd *g);
+ int (*init)(struct gsmd *g, int fd);
+};
+
+extern int gsmd_machine_plugin_register(struct gsmd_machine_plugin *pl);
+extern void gsmd_machine_plugin_unregister(struct gsmd_machine_plugin *pl);
+extern int gsmd_machine_plugin_find(struct gsmd *g);
+
+#endif /* __GSMD__ */
+
+#endif
personal git repositories of Harald Welte. Your mileage may vary