Commit 277e3529 authored by Michael Tross's avatar Michael Tross

Merge branch 'adapt-to-libdsvdc-api' into 'master'

Adapt netatmo vDC to libdsvdc API changes

See merge request !15
parents d83e9b5c 53aa2bdd
......@@ -123,7 +123,7 @@ extern void vdc_announce_device_cb(dsvdc_t *handle __attribute__((unused)), int
extern void vdc_announce_container_cb(dsvdc_t *handle __attribute__((unused)), int code, void *arg, void *userdata __attribute__((unused)));
extern void vdc_end_session_cb(dsvdc_t *handle __attribute__((unused)), void *userdata);
extern bool vdc_remove_cb(dsvdc_t *handle __attribute__((unused)), const char *dsuid, void *userdata);
extern void vdc_blink_cb(dsvdc_t *handle __attribute__((unused)), char **dsuid, size_t n_dsuid, int32_t group, int32_t zone_id, void *userdata);
extern void vdc_blink_cb(dsvdc_t *handle __attribute__((unused)), char **dsuid, size_t n_dsuid, int32_t *group, int32_t *zone_id, void *userdata);
extern void vdc_getprop_cb(dsvdc_t *handle, const char *dsuid, dsvdc_property_t *property, const dsvdc_property_t *query, void *userdata);
extern void vdc_setprop_cb(dsvdc_t *handle, const char *dsuid, dsvdc_property_t *property, const dsvdc_property_t *properties, void *userdata);
......
......@@ -128,13 +128,13 @@ bool vdc_remove_cb(dsvdc_t *handle __attribute__((unused)), const char *dsuid, v
}
void vdc_blink_cb(dsvdc_t *handle __attribute__((unused)), char **dsuid, size_t n_dsuid,
int32_t group, int32_t zone_id, void *userdata)
int32_t *group, int32_t *zone_id, void *userdata)
{
(void) userdata;
size_t n;
for (n = 0; n < n_dsuid; n++) {
vdc_report(LOG_NOTICE, "received blink for device %s: zone %d, group %d\n", *dsuid, zone_id, group);
vdc_report(LOG_NOTICE, "received blink for device %s: zone %d, group %d\n", *dsuid, (zone_id == NULL) ? -1 : *zone_id, (group == NULL) ? -1 : *group);
// TODO: what to do on blink?
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment