GIsiDebugFunc debug;
GIsiNotifyFunc trace;
void *opaque;
+ unsigned long flags;
};
struct _GIsiPending {
return modem->opaque;
}
+unsigned long g_isi_modem_flags(GIsiModem *modem)
+{
+ if (modem == NULL)
+ return 0;
+
+ return modem->flags;
+}
+
+void g_isi_modem_set_flags(GIsiModem *modem, unsigned long flags)
+{
+ if (modem == NULL)
+ return;
+
+ modem->flags = flags;
+}
+
static uint8_t service_next_utid(GIsiServiceMux *mux)
{
if (mux->last_utid == 0x00 || mux->last_utid == 0xFF)
extern "C" {
#endif
+enum GIsiModemFlags {
+ GISI_MODEM_FLAG_USE_LEGACY_SUBSCRIBE = 1,
+};
+
struct _GIsiModem;
typedef struct _GIsiModem GIsiModem;
void *g_isi_modem_set_userdata(GIsiModem *modem, void *data);
void *g_isi_modem_get_userdata(GIsiModem *modem);
+unsigned long g_isi_modem_flags(GIsiModem *modem);
+void g_isi_modem_set_flags(GIsiModem *modem, unsigned long flags);
+
GIsiPending *g_isi_request_send(GIsiModem *modem, uint8_t resource,
const void *__restrict buf, size_t len,
unsigned timeout, GIsiNotifyFunc notify,