/*
- * GPIO chardev utils for linux.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * GPIO chip handling.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * GPIO chip and line iterators.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* GPIO chip and line iterators. */
+
#include <gpiod.h>
#include <string.h>
/*
- * GPIO line handling.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Internal GPIO line-related prototypes.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Misc definitions.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Misc code that didn't fit anywhere else. */
+
#include <gpiod.h>
const char * gpiod_version_string(void)
/*
- * Simple API for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Implementation of the high-level API. */
+
#include <gpiod.h>
#include <string.h>
/*
- * List all GPIO chips.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Read value from GPIO line.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Read value from GPIO line.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * List all lines of a GPIO chip.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Monitor events on GPIO lines.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Set value of a GPIO line.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Common code for GPIO tools.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Common code for GPIO tools. */
+
#include <gpiod.h>
#include "tools-common.h"
/*
- * Common code for GPIO tools.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Testing framework for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
/*
- * Testing framework for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Testing framework - functions and definitions used by test cases. */
+
#ifndef __GPIOD_TEST_H__
#define __GPIOD_TEST_H__
/*
- * GPIO chip test cases for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for GPIO chip handling. */
+
#include "gpiod-test.h"
#include <stdio.h>
/*
- * Line event test cases for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for GPIO line events. */
+
#include "gpiod-test.h"
static void event_rising_edge_good(void)
/*
- * Test cases for the gpiodetect tool.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for the gpiodetect program. */
+
#include "gpiod-test.h"
#include <stdio.h>
/*
- * Test cases for the gpiofind tool.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for the gpiofind program. */
+
#include "gpiod-test.h"
#include <stdio.h>
/*
- * Test cases for the gpioget tool.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for the gpioget program. */
+
#include "gpiod-test.h"
static void gpioget_read_all_lines(void)
/*
- * Test cases for the gpioinfo tool.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for the gpioinfo program. */
+
#include "gpiod-test.h"
#include <stdio.h>
/*
- * Test cases for the gpiomon tool.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for the gpiomon program. */
+
#include "gpiod-test.h"
#include <signal.h>
/*
- * Test cases for the gpioset tool.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for the gpioset program. */
+
#include "gpiod-test.h"
#include <signal.h>
/*
- * Iterator test cases for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Iterator test cases. */
+
#include "gpiod-test.h"
static void chip_iter(void)
/*
- * GPIO line test cases for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* GPIO line test cases. */
+
#include "gpiod-test.h"
#include <errno.h>
/*
- * Misc test cases for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Misc test cases. */
+
#include "gpiod-test.h"
#include <errno.h>
/*
- * Simple API test cases for libgpiod.
+ * This file is part of libgpiod.
*
* Copyright (C) 2017 Bartosz Golaszewski <bartekgola@gmail.com>
*
* as published by the Free Software Foundation.
*/
+/* Test cases for the simple API. */
+
#include "gpiod-test.h"
#include <errno.h>