418 device->present = DEVPRESENT_UNDEF; |
418 device->present = DEVPRESENT_UNDEF; |
419 device->address = xstrcpy((char *)"Enter address here"); |
419 device->address = xstrcpy((char *)"Enter address here"); |
420 device->gpiopin = -1; |
420 device->gpiopin = -1; |
421 device->description = xstrcpy((char *)"Describe me here"); |
421 device->description = xstrcpy((char *)"Describe me here"); |
422 device->comment = xstrcpy((char *)"Comment here"); |
422 device->comment = xstrcpy((char *)"Comment here"); |
|
423 device->timestamp = time(NULL); |
423 |
424 |
424 pthread_mutex_lock(&mutexes[LOCK_DEVICES]); |
425 pthread_mutex_lock(&mutexes[LOCK_DEVICES]); |
425 if (Config.devices == NULL) { |
426 if (Config.devices == NULL) { |
426 Config.devices = device; |
427 Config.devices = device; |
427 } else { |
428 } else { |