summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorHans Ulrich Niedermann <gp@n-dimensional.de>2005-06-13 23:29:35 +0000
committerHans Ulrich Niedermann <gp@n-dimensional.de>2005-06-13 23:29:35 +0000
commitaee556efe2d90f60cbc225494ba153925408a80e (patch)
tree3b7f7a5f749eaa49b6ac131e52fed60c5c87912d /tests
parentf3273bf4339582e52846e04cc3c92f5cd62c0f9a (diff)
downloadlibgphoto2-aee556efe2d90f60cbc225494ba153925408a80e.tar.gz
test-camera-list.c: cosmetics
git-svn-id: https://svn.code.sf.net/p/gphoto/code/trunk/libgphoto2@8094 67ed7778-7388-44ab-90cf-0a291f65f57c
Diffstat (limited to 'tests')
-rw-r--r--tests/test-camera-list.c18
1 files changed, 15 insertions, 3 deletions
diff --git a/tests/test-camera-list.c b/tests/test-camera-list.c
index 8ade37b11..7b2765a1f 100644
--- a/tests/test-camera-list.c
+++ b/tests/test-camera-list.c
@@ -32,12 +32,15 @@
#define CHECK(f) {int res = f; if (res < 0) {printf ("ERROR: %s\n", gp_result_as_string (res)); return (1);}}
-/* boolean value */
+
+/** boolean value */
static int do_debug = 0;
-/* time zero for debug log time stamps */
+
+/** time zero for debug log time stamps */
struct timeval glob_tv_zero = { 0, 0 };
+
static void
#ifdef __GNUC__
__attribute__((__format__(printf,3,0)))
@@ -67,6 +70,7 @@ print_headline (void)
"camera model");
}
+
static void
print_hline (void)
{
@@ -76,6 +80,7 @@ print_hline (void)
"-------------------------------------------");
}
+
/** C equivalent of basename(1) */
static const char *
basename (const char *pathname)
@@ -91,7 +96,8 @@ basename (const char *pathname)
return (const char *)result;
}
-/* Define the different output formats.
+
+/** Define the different output formats.
* These may be used for consistency checking and other stuff.
*/
typedef enum {
@@ -114,8 +120,10 @@ typedef enum {
static OutputFormat format = FMT_HEADED_TEXT;
+
// #define DEBUG_OUTPUT
+
/** Parse command line and set global variables. */
static void
parse_command_line (const int argc, char *argv[])
@@ -155,6 +163,10 @@ parse_command_line (const int argc, char *argv[])
}
}
+
+/**
+ * Get list of supported cameras, walk through it and create some output.
+ */
int
main (int argc, char *argv[])
{