aboutsummaryrefslogtreecommitdiff
path: root/libmm-common/mm-common-helpers.h
diff options
context:
space:
mode:
authorAleksander Morgado <aleksander@lanedo.com>2012-03-17 17:46:06 +0100
committerAleksander Morgado <aleksander@lanedo.com>2012-03-18 17:28:14 +0100
commit46d16d5c995dc2e8f954dd1c27a6fd29e03cedef (patch)
tree0dbf0687b79b9f8c7fbd1c16f107f33e835b0552 /libmm-common/mm-common-helpers.h
parent3046059affaee447923bb8b3e70d06ec02ac9d96 (diff)
libmm-common: new common uint/int/str parsers
Diffstat (limited to 'libmm-common/mm-common-helpers.h')
-rw-r--r--libmm-common/mm-common-helpers.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/libmm-common/mm-common-helpers.h b/libmm-common/mm-common-helpers.h
index 30c82ffd..cec65f34 100644
--- a/libmm-common/mm-common-helpers.h
+++ b/libmm-common/mm-common-helpers.h
@@ -10,7 +10,8 @@
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details:
*
- * Copyright (C) 2011 - Google, Inc.
+ * Copyright (C) 2011 - 2012 Google, Inc.
+ * Copyright (C) 2012 Aleksander Morgado <aleksander@gnu.org>
*/
#include <glib.h>
@@ -56,5 +57,18 @@ gboolean mm_common_parse_key_value_string (const gchar *str,
MMParseKeyValueForeachFn callback,
gpointer user_data);
+/* Common parsers */
+gboolean mm_get_int_from_str (const gchar *str,
+ gint *out);
+gboolean mm_get_int_from_match_info (GMatchInfo *match_info,
+ guint32 match_index,
+ gint *out);
+gboolean mm_get_uint_from_str (const gchar *str,
+ guint *out);
+gboolean mm_get_uint_from_match_info (GMatchInfo *match_info,
+ guint32 match_index,
+ guint *out);
+gchar *mm_get_string_unquoted_from_match_info (GMatchInfo *match_info,
+ guint32 match_index);
#endif /* MM_COMMON_HELPERS_H */