1
0
mirror of https://gitlab.xiph.org/xiph/icecast-common.git synced 2024-06-23 06:25:25 +00:00

Update: Do not allow using the default constructor for sockets

This commit is contained in:
Philipp Schafft 2019-09-18 12:16:55 +00:00
parent d7c3dd1e0b
commit 81da38369a

View File

@ -11,26 +11,20 @@
#endif #endif
#include <igloo/socket.h> #include <igloo/socket.h>
#include <igloo/io.h>
struct igloo_socket_tag { struct igloo_socket_tag {
igloo_ro_base_t __base; igloo_ro_base_t __base;
}; };
static int __new(igloo_ro_t self, const igloo_ro_type_t *type, va_list ap);
static void __free(igloo_ro_t self); static void __free(igloo_ro_t self);
static igloo_ro_t __get_interface_t(igloo_ro_t self, const igloo_ro_type_t *type, const char *name, igloo_ro_t associated, igloo_ro_t instance); static igloo_ro_t __get_interface_t(igloo_ro_t self, const igloo_ro_type_t *type, const char *name, igloo_ro_t associated, igloo_ro_t instance);
igloo_RO_PUBLIC_TYPE(igloo_socket_t, igloo_RO_PUBLIC_TYPE(igloo_socket_t,
igloo_RO_TYPEDECL_FREE(__free), igloo_RO_TYPEDECL_FREE(__free),
igloo_RO_TYPEDECL_NEW(__new),
igloo_RO_TYPEDECL_GET_INTERFACE(__get_interface_t) igloo_RO_TYPEDECL_GET_INTERFACE(__get_interface_t)
); );
static int __new(igloo_ro_t self, const igloo_ro_type_t *type, va_list ap)
{
return 0;
}
static void __free(igloo_ro_t self) static void __free(igloo_ro_t self)
{ {
} }