Hello.
What is the CLISP FFI C type for enum?? I can't find it in the
documentation, and i've tried (c-enum ) (c-enumeration ) (enum )
(enumeration ) and all give me an error. The following fails, tells me
"*** - Incomplete FFI type ENUM_NET_TYPE is not allowed here.":
(def-c-enum enum_net_type NET_TYPE_TCPIP NET_TYPE_SOCKET NET_TYPE_NAMEDPIPE)
(def-c-struct st_net
(nettype enum_net_type)
(fd int)
.... )
And with (c-enum ) and the others it just says it doesent know what they
are:
(def-c-struct st_net
(nettype (c-enum enum_net_type))
(fd int)
.... )
here's the corresponding c code:
enum enum_net_type { NET_TYPE_TCPIP, NET_TYPE_SOCKET, NET_TYPE_NAMEDPIPE };
typedef struct st_net {
enum enum_net_type nettype;
int fd;
....
};
Thanks.
-Eric de Groot
···········@ericdegroot.com