在java中,用JNA怎么去转ulib_c_initialize结构体???
如果自定义的结构体该如何写呢?
ULIB_C_API int ULIB_C_CALL ulib_c_initialize(const char* appKey, const ulib_c_callback_t* callbacks);
typedef struct
{
ulib_c_on_send_message_event sendMessageCallback;
ulib_c_on_receive_message_event receiveMessageCallback;
ulib_c_on_download_message_attachment_event downloadAttachmentCallback;
} ulib_c_callback_t;
typedef void (ULIB_C_CALL *ulib_c_on_send_message_event)(const char* messageId, int sendResult);
typedef void (ULIB_C_CALL *ulib_c_on_receive_message_event)(const char* message);
typedef void (ULIB_C_CALL *ulib_c_on_download_message_attachment_event)(const char* messageId, int downloadResult);
不知道用java使用JNA怎么去写方法ulib_c_initialize代码。。。
大神能指导一下吗? 谢谢了