summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorYun-Hao Chung <howardchung@chromium.org>2021-08-03 19:43:09 +0800
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2021-08-04 15:01:33 -0700
commite7c349950e12eace412206192b4ba7cab6eacc15 (patch)
tree3c6a3963ca721b5e9460ec235cb5ebf6468a3199 /plugins
parentebaa144d72bebb130935ba49fca7fefa567684f9 (diff)
downloadbluez-e7c349950e12eace412206192b4ba7cab6eacc15.tar.gz
plugins: new plugin
This adds an initial code for a new plugin admin. Reviewed-by: Miao-chen Chou <mcchou@chromium.org>
Diffstat (limited to 'plugins')
-rw-r--r--plugins/admin.c32
1 files changed, 32 insertions, 0 deletions
diff --git a/plugins/admin.c b/plugins/admin.c
new file mode 100644
index 000000000..8c6a2be53
--- /dev/null
+++ b/plugins/admin.c
@@ -0,0 +1,32 @@
+// SPDX-License-Identifier: LGPL-2.1-or-later
+/*
+ *
+ * BlueZ - Bluetooth protocol stack for Linux
+ *
+ * Copyright (C) 2021 Google LLC
+ *
+ *
+ */
+
+#ifdef HAVE_CONFIG_H
+#include <config.h>
+#endif
+
+#include "src/log.h"
+#include "src/plugin.h"
+
+static int admin_init(void)
+{
+ DBG("");
+
+ return 0;
+}
+
+static void admin_exit(void)
+{
+ DBG("");
+}
+
+BLUETOOTH_PLUGIN_DEFINE(admin, VERSION,
+ BLUETOOTH_PLUGIN_PRIORITY_DEFAULT,
+ admin_init, admin_exit)