#define SR_OK 0 /* No error */
#define SR_ERR -1 /* Generic/unspecified error */
#define SR_ERR_MALLOC -2 /* Malloc/calloc/realloc error */
-#define SR_ERR_SAMPLERATE -3 /* Incorrect samplerate */
+#define SR_ERR_ARG -3 /* Function argument error */
+#define SR_ERR_SAMPLERATE -4 /* Incorrect samplerate */
#define SR_MAX_NUM_PROBES 64 /* Limited by uint64_t. */
#define SR_MAX_PROBENAME_LEN 32
int num_logic_probes;
};
-#if 0
+#if defined(HAVE_LA_ALSA)
struct sr_analog_probe {
uint8_t att;
uint8_t res; /* Needs to be a power of 2, FIXME */
};
struct sr_input_format {
- char *extension;
+ char *id;
char *description;
int (*format_match) (const char *filename);
int (*init) (struct sr_input *in);
};
struct sr_output_format {
- char *extension;
+ char *id;
char *description;
int df_type;
int (*init) (struct sr_output *o);