diff options
author | Siim Meerits <sh0@yutani.ee> | 2020-07-27 17:37:00 +0300 |
---|---|---|
committer | Siim Meerits <sh0@yutani.ee> | 2020-07-27 17:37:00 +0300 |
commit | 456a1d598bccc260b233d2e91c469be452e0fbef (patch) | |
tree | c1288655494c94292f6e2eb26d722958899c7107 /libgphoto2_port/gphoto2 | |
parent | af2c0e0558e78cae06371abef36f43ca74a9c5c0 (diff) | |
download | libgphoto2-456a1d598bccc260b233d2e91c469be452e0fbef.tar.gz |
Remove trailing whitespace from all *.h and *.c files.
Diffstat (limited to 'libgphoto2_port/gphoto2')
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port-info-list.h | 10 | ||||
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port-library.h | 16 | ||||
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port-log.h | 42 | ||||
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port-portability.h | 8 | ||||
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port-result.h | 8 | ||||
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port-version.h | 6 | ||||
-rw-r--r-- | libgphoto2_port/gphoto2/gphoto2-port.h | 28 |
7 files changed, 59 insertions, 59 deletions
diff --git a/libgphoto2_port/gphoto2/gphoto2-port-info-list.h b/libgphoto2_port/gphoto2/gphoto2-port-info-list.h index fcb840b68..e8c3b209a 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-info-list.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-info-list.h @@ -9,10 +9,10 @@ * version 2 of the License, or (at your option) any later version. * * \par - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * \par * You should have received a copy of the GNU Lesser General Public @@ -31,7 +31,7 @@ * The enum is providing bitmasks, but most code uses it as * just the one specific values. */ -typedef enum { +typedef enum { GP_PORT_NONE = 0, /**< \brief No specific type associated. */ GP_PORT_SERIAL = 1 << 0, /**< \brief Serial port. */ GP_PORT_USB = 1 << 2, /**< \brief USB port. */ @@ -44,7 +44,7 @@ typedef enum { /** * \brief Information about the current port. - * + * * Specific information about the current port. Usually taken from the * "--port=XXXX" setting from the frontend. * diff --git a/libgphoto2_port/gphoto2/gphoto2-port-library.h b/libgphoto2_port/gphoto2/gphoto2-port-library.h index 1193f22da..2a9fd8839 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-library.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-library.h @@ -9,10 +9,10 @@ * version 2 of the License, or (at your option) any later version. * * \par - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * \par * You should have received a copy of the GNU Lesser General Public @@ -29,7 +29,7 @@ /** * \brief The port operations - * + * * These operations are to be implemented and set by the port library, * which drives the lowlevel protocol (serial, usb, etc.). * @@ -63,13 +63,13 @@ typedef struct _GPPortOperations { char *bytes, int size); int (*msg_read) (GPPort * dev, int request, int value, int index, char *bytes, int size); - int (*msg_interface_write) (GPPort * dev, int request, + int (*msg_interface_write) (GPPort * dev, int request, int value, int index, char *bytes, int size); - int (*msg_interface_read) (GPPort * dev, int request, + int (*msg_interface_read) (GPPort * dev, int request, int value, int index, char *bytes, int size); - int (*msg_class_write) (GPPort * dev, int request, + int (*msg_class_write) (GPPort * dev, int request, int value, int index, char *bytes, int size); - int (*msg_class_read) (GPPort * dev, int request, + int (*msg_class_read) (GPPort * dev, int request, int value, int index, char *bytes, int size); /* For USB disk direct IO devices */ diff --git a/libgphoto2_port/gphoto2/gphoto2-port-log.h b/libgphoto2_port/gphoto2/gphoto2-port-log.h index 3d35d5938..b4737577b 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-log.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-log.h @@ -7,10 +7,10 @@ * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the @@ -36,10 +36,10 @@ typedef enum { /** * GP_LOG_ALL: - * - * Used by frontends if they want to be sure their - * callback function receives all messages. Defined - * as the highest debug level. Can make frontend code + * + * Used by frontends if they want to be sure their + * callback function receives all messages. Defined + * as the highest debug level. Can make frontend code * more understandable and extension of log levels * easier. **/ @@ -47,9 +47,9 @@ typedef enum { /** * \brief Logging function hook - * + * * This is the function frontends can use to receive logging information - * from the libgphoto2 framework. It is set using gp_log_add_func() and + * from the libgphoto2 framework. It is set using gp_log_add_func() and * removed using gp_log_remove_func() and will then receive the logging * messages of the level specified. * @@ -133,7 +133,7 @@ __attribute__((__format__(printf,4,5))) # ifdef __GNUC__ # warning Disabling GP_DEBUG because variadic macros are not allowed # endif -#define GP_DEBUG (void) +#define GP_DEBUG (void) #define GP_LOG_D(...) /* no-op */ #define GP_LOG_E(...) /* no-op */ #define GP_LOG_DATA(DATA, SIZE, ...) /* no-op */ @@ -181,8 +181,8 @@ __attribute__((__format__(printf,4,5))) typedef void (*string_item_func) (const char *str, void *data); - const char * - gpi_enum_to_string(const unsigned int _enum, + const char * + gpi_enum_to_string(const unsigned int _enum, const StringFlagItem *map); int @@ -190,22 +190,22 @@ __attribute__((__format__(printf,4,5))) unsigned int *result, const StringFlagItem *map); - void - gpi_flags_to_string_list(const unsigned int flags, + void + gpi_flags_to_string_list(const unsigned int flags, const StringFlagItem *map, string_item_func func, void *data); - - int - gpi_string_or_to_flags(const char *str, + + int + gpi_string_or_to_flags(const char *str, unsigned int *flags, const StringFlagItem *map); - unsigned int - gpi_string_to_flag(const char *str, + unsigned int + gpi_string_to_flag(const char *str, const StringFlagItem *map); - unsigned int - gpi_string_list_to_flags(const char *str[], + unsigned int + gpi_string_list_to_flags(const char *str[], const StringFlagItem *map); /* Allocates a sufficiently large buffer and interpolates the format diff --git a/libgphoto2_port/gphoto2/gphoto2-port-portability.h b/libgphoto2_port/gphoto2/gphoto2-port-portability.h index 3d06efb54..1a8cdc17d 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-portability.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-portability.h @@ -7,10 +7,10 @@ * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the @@ -171,7 +171,7 @@ typedef struct { * End OS/2 definitions ************************************************************************/ -#else +#else /************************************************************************ * Begin POSIX/XOPEN definitions diff --git a/libgphoto2_port/gphoto2/gphoto2-port-result.h b/libgphoto2_port/gphoto2/gphoto2-port-result.h index 021460fd5..4fefa7a31 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-result.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-result.h @@ -7,10 +7,10 @@ * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the @@ -24,7 +24,7 @@ /* Return values. gphoto2-port should only return values from 0 to -99 */ /** * \brief Everything is OK - * + * * Note that this is also the value 0, and every error is negative (lower). */ #define GP_OK 0 diff --git a/libgphoto2_port/gphoto2/gphoto2-port-version.h b/libgphoto2_port/gphoto2/gphoto2-port-version.h index 251604080..761f56208 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port-version.h +++ b/libgphoto2_port/gphoto2/gphoto2-port-version.h @@ -7,10 +7,10 @@ * License as published by the Free Software Foundation; either * version 2 of the License, or (at your option) any later version. * - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the diff --git a/libgphoto2_port/gphoto2/gphoto2-port.h b/libgphoto2_port/gphoto2/gphoto2-port.h index d1336cc3e..3fe6b2fee 100644 --- a/libgphoto2_port/gphoto2/gphoto2-port.h +++ b/libgphoto2_port/gphoto2/gphoto2-port.h @@ -1,4 +1,4 @@ -/** \file +/** \file * * \author Copyright 2001 Lutz Mueller <lutz@users.sf.net> * @@ -9,10 +9,10 @@ * version 2 of the License, or (at your option) any later version. * * \par - * This library is distributed in the hope that it will be useful, - * but WITHOUT ANY WARRANTY; without even the implied warranty of + * This library is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU - * Lesser General Public License for more details. + * Lesser General Public License for more details. * * \par * You should have received a copy of the GNU Lesser General Public @@ -47,7 +47,7 @@ extern "C" { /** * \brief Serial parity - * + * * Parity of the serial port. */ typedef enum _GPPortSerialParity @@ -58,7 +58,7 @@ typedef enum _GPPortSerialParity } GPPortSerialParity; /** \brief Maximum length of receive buffer */ -#define GP_PORT_MAX_BUF_LEN 4096 +#define GP_PORT_MAX_BUF_LEN 4096 /** * \brief Port settings for serial ports. @@ -67,7 +67,7 @@ typedef struct _GPPortSettingsSerial { char port[128]; /**< The portname (/dev/ttyX)*/ int speed; /**< The baudrate of the device. */ int bits; /**< How many bits data. */ - GPPortSerialParity parity; /**< parity data, see GP_PORT_SERIAL_PARITY_ + GPPortSerialParity parity; /**< parity data, see GP_PORT_SERIAL_PARITY_ defines */ int stopbits; /**< How many stop bits are used. */ } GPPortSettingsSerial; @@ -86,7 +86,7 @@ typedef struct _GPPortSettingsUSB { int maxpacketsize; /**< \brief Maximum USB packetsize of the IN endpoint. (r/o) */ /* must be last to avoid binary incompatibility. - * luckily we just need to make sure this struct does not + * luckily we just need to make sure this struct does not * get larger than _GPPortSettingsSerial. */ char port[64]; /**< \brief USB Portname. Specific to lowlevel USB. */ } GPPortSettingsUSB; @@ -177,7 +177,7 @@ int gp_port_get_settings (GPPort *port, GPPortSettings *settings); /** * \brief Serial pins. - * + * * A number of serial pins to trigger and pull. This is necessary * for some devices that have more than just the regular 3 or 4 wires. */ @@ -192,7 +192,7 @@ typedef enum _GPPin { /** * \brief Level to pull specific lines. - * + * * The level on which to pull some of the serial lines. */ typedef enum _GPLevel { @@ -213,13 +213,13 @@ int gp_port_usb_msg_write (GPPort *port, int request, int value, int index, char *bytes, int size); int gp_port_usb_msg_read (GPPort *port, int request, int value, int index, char *bytes, int size); -int gp_port_usb_msg_interface_write (GPPort *port, int request, +int gp_port_usb_msg_interface_write (GPPort *port, int request, int value, int index, char *bytes, int size); -int gp_port_usb_msg_interface_read (GPPort *port, int request, +int gp_port_usb_msg_interface_read (GPPort *port, int request, int value, int index, char *bytes, int size); -int gp_port_usb_msg_class_write (GPPort *port, int request, +int gp_port_usb_msg_class_write (GPPort *port, int request, int value, int index, char *bytes, int size); -int gp_port_usb_msg_class_read (GPPort *port, int request, +int gp_port_usb_msg_class_read (GPPort *port, int request, int value, int index, char *bytes, int size); int gp_port_seek (GPPort *port, int offset, int whence); |