summaryrefslogtreecommitdiff
path: root/src/common/mbim-common.h
diff options
context:
space:
mode:
authorBen Chan <benchan@chromium.org>2017-07-27 19:45:53 -0700
committerAleksander Morgado <aleksander@aleksander.es>2017-07-28 09:47:54 +0200
commit8e64510e706d7192ec9e0db6c506d05beda9820c (patch)
treecf2385f5e14b9e5977c4e6a8a0f554c684d17049 /src/common/mbim-common.h
parent0e2ad4993ebcbcbc52ca0b0cc13a65ecfcbd81c8 (diff)
mbim-common: turn __mbim_utils_str_hex into mbim_common_str_hex
__mbim_utils_str_hex is a useful utility method for returning a hexadecimal string representation of a sequence of bytes in memory. This patch turns it into 'mbim_common_str_hex', which can be shared between libmbim-glib and mbimcli.
Diffstat (limited to 'src/common/mbim-common.h')
-rw-r--r--src/common/mbim-common.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/src/common/mbim-common.h b/src/common/mbim-common.h
new file mode 100644
index 0000000..3b74dcd
--- /dev/null
+++ b/src/common/mbim-common.h
@@ -0,0 +1,31 @@
+/* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*- */
+/*
+ * This library is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Lesser General Public
+ * License as published by the Free Software Foundation; either
+ * version 2 of the License, or (at your option) any later version.
+ *
+ * This library 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
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this library; if not, write to the
+ * Free Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ * Boston, MA 02110-1301 USA.
+ *
+ * Copyright (C) 2013 - 2014 Aleksander Morgado <aleksander@aleksander.es>
+ * Copyright (C) 2017 Google Inc.
+ */
+
+#ifndef _COMMON_MBIM_COMMON_H_
+#define _COMMON_MBIM_COMMON_H_
+
+#include <glib.h>
+
+gchar *mbim_common_str_hex (gconstpointer mem,
+ gsize size,
+ gchar delimiter);
+
+#endif /* _COMMON_MBIM_COMMON_H_ */