aboutsummaryrefslogtreecommitdiff
path: root/plugins/fibocom/mm-shared.c
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@aleksander.es>2022-03-08 15:59:15 +0100
committerAleksander Morgado <aleksander@aleksander.es>2022-03-09 22:05:32 +0000
commitc74a377f9881f7fcdf2c8cab0b5a5378692cf6d2 (patch)
treec8fe744a2de0f65feb78e7ff2f7afb2dcaf98ff3 /plugins/fibocom/mm-shared.c
parent5fc6b9ee1b0c7b631328d71cf991bde9b70df2a2 (diff)
fibocom: new shared interface for common logic
The set_initial_eps_bearer_settings() operation is the same in XMM capable and generic MBIM modem objects. Place it in a common shared interface so that we don't duplicate code.
Diffstat (limited to 'plugins/fibocom/mm-shared.c')
-rw-r--r--plugins/fibocom/mm-shared.c20
1 files changed, 20 insertions, 0 deletions
diff --git a/plugins/fibocom/mm-shared.c b/plugins/fibocom/mm-shared.c
new file mode 100644
index 00000000..b99bc3aa
--- /dev/null
+++ b/plugins/fibocom/mm-shared.c
@@ -0,0 +1,20 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details:
+ *
+ * Copyright (C) 2022 Aleksander Morgado <aleksander@aleksander.es>
+ */
+
+#include "mm-shared.h"
+
+MM_SHARED_DEFINE_MAJOR_VERSION
+MM_SHARED_DEFINE_MINOR_VERSION
+MM_SHARED_DEFINE_NAME(Intel)