aboutsummaryrefslogtreecommitdiffstats
path: root/epan/strutil.h
diff options
context:
space:
mode:
authorTomas Kukosa <tomas.kukosa@siemens.com>2005-12-02 13:16:58 +0000
committerTomas Kukosa <tomas.kukosa@siemens.com>2005-12-02 13:16:58 +0000
commitdcae7d303f0669cee025a52fbc22d3e7c4d535bc (patch)
treed41f358db1ab3107d4951c04b41d4c148c8d4e06 /epan/strutil.h
parenta809b11b2bee93510dd001a96a7d01f78e2a7030 (diff)
new field type FT_OID for OBJECT IDENTIFIERs
svn path=/trunk/; revision=16652
Diffstat (limited to 'epan/strutil.h')
-rw-r--r--epan/strutil.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/epan/strutil.h b/epan/strutil.h
index 9e8c632a09..ac5dc5aaab 100644
--- a/epan/strutil.h
+++ b/epan/strutil.h
@@ -99,6 +99,15 @@ gchar* bytes_to_str_punct(const guint8 *bd, int bd_len, gchar punct);
gboolean hex_str_to_bytes(const char *hex_str, GByteArray *bytes,
gboolean force_separators);
+/** Turn a OID string representation (dot notaion) into a byte array.
+ *
+ * @param oid_str The OID string (dot notaion).
+ * @param bytes The GByteArray that will receive the bytes. This
+ * must be initialized by the caller.
+ * @return True if the string was converted successfully
+ */
+gboolean oid_str_to_bytes(const char *oid_str, GByteArray *bytes);
+
/** Return a XML escaped representation of the unescaped string.
* The returned string must be freed when no longer in use.
*