diff options
author | Lutz Mueller <lutz@users.sourceforge.net> | 2001-10-16 22:38:58 +0000 |
---|---|---|
committer | Lutz Mueller <lutz@users.sourceforge.net> | 2001-10-16 22:38:58 +0000 |
commit | 2f3fa5134dfc8906c6211127b8c141f3bdfb9588 (patch) | |
tree | ebe7920bafb02dfd43dfe30f0b3fa1efd8ea2b7a /camlibs/dimera/dimera3500.c | |
parent | c3a5cdab432bdf3d5192cfee9fc4130bb6d19296 (diff) | |
download | libgphoto2-2f3fa5134dfc8906c6211127b8c141f3bdfb9588.tar.gz |
2001-10-17 Lutz M�ller <urc8@rz.uni-karlsruhe.de>
* README: no glib-dependency any more
* camlibs: gp_abilities_new doesn't exist any more
* doc/api: Even more documentation
* libgphoto2/gphoto2-abiltiies.h: Cleaned up.
* libgphoto2/gphoto2-abilities-list.c: Documented
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@2569 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'camlibs/dimera/dimera3500.c')
-rw-r--r-- | camlibs/dimera/dimera3500.c | 40 |
1 files changed, 24 insertions, 16 deletions
diff --git a/camlibs/dimera/dimera3500.c b/camlibs/dimera/dimera3500.c index 5aad23b2f..9afae7bbd 100644 --- a/camlibs/dimera/dimera3500.c +++ b/camlibs/dimera/dimera3500.c @@ -21,6 +21,15 @@ * * History: * $Log$ + * Revision 1.23 2001/10/16 22:38:57 lutz + * 2001-10-17 Lutz Müller <urc8@rz.uni-karlsruhe.de> + * + * * README: no glib-dependency any more + * * camlibs: gp_abilities_new doesn't exist any more + * * doc/api: Even more documentation + * * libgphoto2/gphoto2-abiltiies.h: Cleaned up. + * * libgphoto2/gphoto2-abilities-list.c: Documented + * * Revision 1.22 2001/10/16 19:04:52 dfandrich * Using CHECK to propagate more error codes to callers. * Added support for i18n. @@ -318,25 +327,24 @@ int camera_id (CameraText *id) { int camera_abilities (CameraAbilitiesList *list) { int x=0; - CameraAbilities *a; + CameraAbilities a; while (models[x]) { - gp_abilities_new(&a); - - strcpy(a->model, models[x]); - a->port = GP_PORT_SERIAL; - a->speed[0] = 9600; - a->speed[1] = 14400; - a->speed[2] = 19200; - a->speed[3] = 38400; - a->speed[4] = 57600; - a->speed[5] = 76800; - a->speed[6] = 115200; - a->speed[7] = 0; - a->operations = GP_OPERATION_CAPTURE_IMAGE; - a->file_operations = GP_FILE_OPERATION_PREVIEW; - a->folder_operations = GP_FOLDER_OPERATION_NONE; + strcpy(a.model, models[x]); + a.status = GP_DRIVER_STATUS_PRODUCTION; + a.port = GP_PORT_SERIAL; + a.speed[0] = 9600; + a.speed[1] = 14400; + a.speed[2] = 19200; + a.speed[3] = 38400; + a.speed[4] = 57600; + a.speed[5] = 76800; + a.speed[6] = 115200; + a.speed[7] = 0; + a.operations = GP_OPERATION_CAPTURE_IMAGE; + a.file_operations = GP_FILE_OPERATION_PREVIEW; + a.folder_operations = GP_FOLDER_OPERATION_NONE; gp_abilities_list_append(list, a); |