return SR_OK;
}
-#if 0
-void sr_session_pa_clear(void)
-{
- /*
- * The protocols are pointers to the global set of PA plugins,
- * so don't free them.
- */
- g_slist_free(session->analyzers);
- session->analyzers = NULL;
-}
-
-void sr_session_pa_add(struct sr_analyzer *an)
-{
- session->analyzers = g_slist_append(session->analyzers, an);
-}
-#endif
-
/**
* Clear all datafeed callbacks in the current session.
*
void sr_session_device_clear(void);
int sr_session_device_add(struct sr_device *device);
-#if 0
-/* Protocol analyzers setup */
-void sr_session_pa_clear(void);
-void sr_session_pa_add(struct sr_analyzer *pa);
-#endif
-
/* Datafeed setup */
void sr_session_datafeed_callback_clear(void);
void sr_session_datafeed_callback_add(sr_datafeed_callback callback);
SR_T_BOOL,
};
-#if 0
-/* (Unused) protocol decoder stack entry */
-struct sr_protocol {
- char *name;
- int id;
- int stackindex;
-};
-#endif
-
/* sr_datafeed_packet.type values */
enum {
SR_DF_HEADER,
uint64_t *length_out);
};
-#if 0
-struct sr_analyzer {
- char *name;
- char *filename;
- /*
- * TODO: Parameters? If so, configured plugins need another struct.
- * TODO: Input and output format?
- */
-};
-#endif
-
struct sr_datastore {
/* Size in bytes of the number of units stored in this datastore */
int ds_unitsize;