summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorKrzysztof Opasiak <k.opasiak@samsung.com>2014-04-03 16:55:24 +0200
committerKrzysztof Opasiak <k.opasiak@samsung.com>2014-07-05 10:27:50 +0200
commit38943f9ae0842bf11e1c2aad6413261a8e59d321 (patch)
tree6d64ff3ef2afd8e541b72b3c211deb2dd534227e /include
parent720b4fd052183a2ac94cb2fa3478eccf1bdf8b7c (diff)
downloadlibusbg-38943f9ae0842bf11e1c2aad6413261a8e59d321.tar.gz
libusbg-38943f9ae0842bf11e1c2aad6413261a8e59d321.tar.bz2
libusbg-38943f9ae0842bf11e1c2aad6413261a8e59d321.zip
libusbg: Add remove function functionality.
Add function which allow to remove USB function. This functions also remove function from internal library structures what means that after this operation all pointers to removed function are invalid. Signed-off-by: Krzysztof Opasiak <k.opasiak@samsung.com>
Diffstat (limited to 'include')
-rw-r--r--include/usbg/usbg.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/usbg/usbg.h b/include/usbg/usbg.h
index 4bfa058..4b04551 100644
--- a/include/usbg/usbg.h
+++ b/include/usbg/usbg.h
@@ -303,6 +303,15 @@ extern int usbg_rm_binding(usbg_binding *b);
extern int usbg_rm_config(usbg_config *c, int opts);
/**
+ * @brief Remove existing USB function
+ * @details This function frees also the memory allocated for function
+ * @param f Function to be removed
+ * @param opts Additional options for configuration removal.
+ * @return 0 on success, usbg_error if error occurred
+ */
+extern int usbg_rm_function(usbg_function *f, int opts);
+
+/**
* @brief Remove configuration strings for given language
* @param c Pointer to configuration
* @param lang Language of strings which should be deleted