summaryrefslogtreecommitdiff
path: root/include/netsurf/fetch.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/netsurf/fetch.h')
-rw-r--r--include/netsurf/fetch.h17
1 files changed, 17 insertions, 0 deletions
diff --git a/include/netsurf/fetch.h b/include/netsurf/fetch.h
index 30b204868..156f4d1ef 100644
--- a/include/netsurf/fetch.h
+++ b/include/netsurf/fetch.h
@@ -99,6 +99,23 @@ struct gui_fetch_table {
*/
char *(*mimetype)(const char *ro_path);
+ /**
+ * Open a socket
+ *
+ * \param domain Communication domain
+ * \param type Socket type
+ * \param protocol Protocol
+ * \return Socket descriptor on success, -1 on error and errno set
+ */
+ int (*socket_open)(int domain, int type, int protocol);
+
+ /**
+ * Close a socket
+ *
+ * \param socket Socket descriptor
+ * \return 0 on success, -1 on error and errno set
+ */
+ int (*socket_close)(int socket);
};
#endif