Commit [r15103] Maximize Restore History

From: Axel Waggershauser <awagger@web.de>

1) introduce C_PARAMS and C_PARAMS_MSG along the lines of C_MEM

2) replace CHECK_NULL with C_PARAMS

3) replace the pattern

if ( something ) return GP_ERROR_BAD_PARAMETERS;

with

C_PARAMS ( !something );

I went over the whole patch again to check that each 'something'
condition is really inverted, so I dare to suggest you don't have to
do that again ;).

4) replaced CHECK_LIST and CHECK_INDEX_RANGE with simple one-line
C_PARAMS(...) expressions

5) a couple of hunks look like this

- if (!inet_aton (buffer, &inp)) {
- fprintf(stderr,"failed to scan for addr in %s\n", buffer);
- return GP_ERROR_BAD_PARAMETERS;
- }
+ C_PARAMS_MSG (inet_aton (buffer, &inp),

so some 'lost' error messages get now properly piped into the gp_log
mechanism.

marcusmeissner 2014-07-22

changed /trunk/libgphoto2/camlibs/ptp2/library.c
changed /trunk/libgphoto2/camlibs/ptp2/config.c
changed /trunk/libgphoto2/libgphoto2/gphoto2-list.c
changed /trunk/libgphoto2/libgphoto2/gphoto2-setting.c
changed /trunk/libgphoto2/libgphoto2/gphoto2-abilities-list.c
changed /trunk/libgphoto2/libgphoto2/gphoto2-filesys.c
changed /trunk/libgphoto2/libgphoto2/gphoto2-file.c
changed /trunk/libgphoto2/libgphoto2_port/usbdiskdirect/linux.c
changed /trunk/libgphoto2/libgphoto2/gphoto2-widget.c
changed /trunk/libgphoto2/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c
changed /trunk/libgphoto2/libgphoto2_port/libusb1/libusb1.c
changed /trunk/libgphoto2/libgphoto2_port/serial/unix.c
changed /trunk/libgphoto2/libgphoto2/gphoto2-camera.c
changed /trunk/libgphoto2/libgphoto2_port/usb/libusb.c
changed /trunk/libgphoto2/libgphoto2_port/usbscsi/linux.c
changed /trunk/libgphoto2/libgphoto2_port/gphoto2/gphoto2-port-log.h
changed /trunk/libgphoto2/libgphoto2_port/libgphoto2_port/gphoto2-port.c
changed /trunk/libgphoto2/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c
/trunk/libgphoto2/camlibs/ptp2/library.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/camlibs/ptp2/config.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2/gphoto2-list.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2/gphoto2-setting.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2/gphoto2-abilities-list.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2/gphoto2-filesys.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2/gphoto2-file.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/usbdiskdirect/linux.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2/gphoto2-widget.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/libgphoto2_port/gphoto2-port-log.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/libusb1/libusb1.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/serial/unix.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2/gphoto2-camera.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/usb/libusb.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/usbscsi/linux.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/gphoto2/gphoto2-port-log.h Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/libgphoto2_port/gphoto2-port.c Diff Switch to side-by-side view
Loading...
/trunk/libgphoto2/libgphoto2_port/libgphoto2_port/gphoto2-port-info-list.c Diff Switch to side-by-side view
Loading...