Home /Modules/drivers/driver.c

driver.c

drivers/grandstream/guv3005/1.0/driver.c · 7 line(s) · c

#include "driver.h"
#include <string.h>
static int probe(const skya_driver_device*d){return d&&d->vendor&&d->model&&strcmp(d->vendor,"Grandstream")==0&&strstr(d->model,"GUV3005")!=0;}
static int capabilities(const skya_driver_device*d,skya_driver_capabilities*out){if(!d||!out)return -1;memset(out,0,sizeof(*out));out->audio_input=1;out->audio_output=1;out->mute=1;out->volume=1;out->firmware_query=1;out->headset_port=1;if(d->transport==SKYA_TRANSPORT_USB_HID){out->call_answer=1;out->call_end=1;}return 0;}
static const skya_phone_driver driver={"c-grandstream_guv3005","Grandstream",probe,capabilities};
const skya_phone_driver *skya_c_grandstream_guv3005_driver(void){return &driver;}