Logo Search packages:      
Sourcecode: libgphoto2 version File versions

int camera_id ( CameraText id  ) 

Get a unique camera id.

camera_id: : string buffer to receive text identifying camera type

Standard gphoto2 camlib interface

Returns: string is copied into .

Set library ID string.

Probably redundant and to be removed shortly, being replaced by the libtool module name defined in the build system.

This is a camlib API function.

Parameters:
id a CameraText that receives the id string
This function should write a unique id into id and return GP_OK. That is, choose a unique id, use strncpy in order to copy it into the id, and return GP_OK. The driver name should suffice.

Returns:
a gphoto2 error code

Definition at line 193 of file adc65.c.

References GP_OK, and CameraText::text.

                               {
      strcpy(id->text, "adc65");
      return (GP_OK);
}


Generated by  Doxygen 1.6.0   Back to index