typedef struct { /* Flow control lines */ void (*cts)(conf_object_t *obj, int status); void (*dsr)(conf_object_t *obj, int status); /* Ring indicator */ void (*ring)(conf_object_t *obj, int status); /* Carrier detect */ void (*carrier)(conf_object_t *obj, int status); /* Break */ void (*got_break)(conf_object_t *obj); /* Frame error */ void (*got_frame_error)(conf_object_t *obj); } rs232_device_interface_t; #define RS232_DEVICE_INTERFACE "rs232-device"