Change-Id: I1407f526e68cafef9569fe86c8ac27a07d6ee3fd
Signed-off-by: ji.yong.seo <ji.yong.seo@samsung.com>
return 0;
}
+int ffurl_deregister_protocol(URLProtocol *protocol)
+{
+ URLProtocol **p;
+
+ p = &first_protocol;
+
+ while (*p != NULL) {
+ if(!strcmp((*p)->name, protocol->name)) {
+ *p = (*p)->next;
+ continue;
+ }
+ p = &(*p)->next;
+ }
+
+ return 0;
+}
+
static int url_alloc_for_protocol(URLContext **puc, struct URLProtocol *up,
const char *filename, int flags,
const AVIOInterruptCB *int_cb)
int ffurl_register_protocol(URLProtocol *protocol);
/**
+ * Deregister the URLProtocol protocol.
+ */
+int ffurl_deregister_protocol(URLProtocol *protocol);
+
+/**
* Check if the user has requested to interrup a blocking function
* associated with cb.
*/