2014-09-16 00:52:07 +02:00
|
|
|
#ifndef DRIVER_MENU_BACKEND_H__
|
|
|
|
#define DRIVER_MENU_BACKEND_H__
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
extern "C" {
|
|
|
|
#endif
|
|
|
|
|
|
|
|
typedef struct menu_ctx_driver_backend
|
|
|
|
{
|
|
|
|
int (*iterate)(unsigned);
|
|
|
|
unsigned (*type_is)(const char *, unsigned);
|
|
|
|
void (*setting_set_label)(char *, size_t, unsigned *,
|
|
|
|
unsigned, const char *, const char *, unsigned);
|
2014-10-12 00:10:44 +02:00
|
|
|
void (*list_insert)(void *, const char *, const char *, size_t);
|
|
|
|
void (*list_delete)(void *, size_t, size_t);
|
|
|
|
void (*list_clear)(void *);
|
|
|
|
void (*list_set_selection)(void *);
|
2014-09-16 00:52:07 +02:00
|
|
|
const char *ident;
|
|
|
|
} menu_ctx_driver_backend_t;
|
|
|
|
|
|
|
|
#ifdef __cplusplus
|
|
|
|
}
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#endif
|