int nb_inputs, nb_outputs;
} shm_bfr_t;
-#define TYP_AUDIO 1
-#define TYP_CONTROL 2
-#define TYP_ATOM 4
-#define TYP_ALL ~0
+#define PORTS_AUDIO 0x01
+#define PORTS_CONTROL 0x02
+#define PORTS_ATOM 0x04
+#define PORTS_ALL (PORTS_AUDIO | PORTS_CONTROL | PORTS_ATOM)
+#define PORTS_INPUT 0x08
+#define PORTS_OUTPUT 0x10
+#define PORTS_UPDATE 0x20
class PluginLV2
{
static LV2_URID uri_table_map(LV2_URID_Map_Handle handle, const char *uri);
static const char *uri_table_unmap(LV2_URID_Map_Handle handle, LV2_URID urid);
- void connect_ports(PluginLV2ClientConfig &conf, int typ=TYP_ALL);
+ void connect_ports(PluginLV2ClientConfig &conf, int ports);
void del_buffer();
void new_buffer(int64_t sz);
shm_bfr_t *shm_buffer(int shmid);
};
typedef struct { int sample_rate; char path[1]; } open_bfr_t;
-typedef struct { int idx; float value; } control_bfr_t;
enum { NO_COMMAND,
LV2_OPEN,
LV2_UPDATE,
LV2_SHOW,
LV2_HIDE,
- LV2_SET,
LV2_SHMID,
NB_COMMANDS };