This matches the naming of other/similar functions better.
interval = (devc->config[0x1c] | (devc->config[0x1d] << 8)) * 1000;
packet.type = SR_DF_META;
packet.payload = &meta;
- src = sr_config_make(SR_CONF_SAMPLE_INTERVAL, (const void *)&interval);
+ src = sr_config_new(SR_CONF_SAMPLE_INTERVAL, (const void *)&interval);
meta.config = g_slist_append(NULL, src);
sr_session_send(devc->cb_data, &packet);
g_free(src);
}
}
-SR_PRIV struct sr_config *sr_config_make(int key, const void *value)
+SR_PRIV struct sr_config *sr_config_new(int key, const void *value)
{
struct sr_config *src;
if (ctx->samplerate) {
packet.type = SR_DF_META;
packet.payload = &meta;
- src = sr_config_make(SR_CONF_SAMPLERATE, (const void *)&ctx->samplerate);
+ src = sr_config_new(SR_CONF_SAMPLERATE, (const void *)&ctx->samplerate);
meta.config = g_slist_append(NULL, src);
sr_session_send(in->sdi, &packet);
}
/* Send metadata about the SR_DF_LOGIC packets to come. */
packet.type = SR_DF_META;
packet.payload = &meta;
- src = sr_config_make(SR_CONF_SAMPLERATE, (const void *)&samplerate);
+ src = sr_config_new(SR_CONF_SAMPLERATE, (const void *)&samplerate);
meta.config = g_slist_append(NULL, src);
sr_session_send(in->sdi, &packet);
packet.type = SR_DF_META;
packet.payload = &meta;
samplerate = ctx->samplerate / ctx->downsample;
- src = sr_config_make(SR_CONF_SAMPLERATE, (const void *)&samplerate);
+ src = sr_config_new(SR_CONF_SAMPLERATE, (const void *)&samplerate);
meta.config = g_slist_append(NULL, src);
sr_session_send(in->sdi, &packet);
packet.type = SR_DF_META;
packet.payload = &meta;
- src = sr_config_make(SR_CONF_SAMPLERATE, (const void *)&ctx->samplerate);
+ src = sr_config_new(SR_CONF_SAMPLERATE, (const void *)&ctx->samplerate);
meta.config = g_slist_append(NULL, src);
sr_session_send(in->sdi, &packet);
/*--- hwdriver.c ------------------------------------------------------------*/
SR_PRIV void sr_hw_cleanup_all(void);
-SR_PRIV struct sr_config *sr_config_make(int key, const void *value);
+SR_PRIV struct sr_config *sr_config_new(int key, const void *value);
SR_PRIV int sr_source_remove(int fd);
SR_PRIV int sr_source_add(int fd, int events, int timeout,
sr_receive_data_callback_t cb, void *cb_data);