Skip to content

Commit

Permalink
[doc] Document undocumented structures
Browse files Browse the repository at this point in the history
Undocumented structures cause warnings during documentation generation.

Add missing doxygen documentation comments for structures.

Signed-off-by: Simo Piiroinen <simo.piiroinen@jollamobile.com>
  • Loading branch information
spiiroin committed Mar 13, 2017
1 parent 04e3a75 commit 1e3378f
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/usb_moded-network.c
Expand Up @@ -53,10 +53,15 @@
#define UDHCP_CONFIG_LINK "/etc/udhcpd.conf"

const char default_interface[] = "usb0";

/** IP forwarding configuration block */
typedef struct ipforward_data
{
/** Address of primary DNS */
char *dns1;
/** Address of secondary DNS */
char *dns2;
/** Interface from which packets should be forwarded */
char *nat_interface;
}ipforward_data;

Expand Down
3 changes: 3 additions & 0 deletions src/usb_moded-udev.c
Expand Up @@ -50,8 +50,11 @@ static int cleanup = 0;
static int cable = 0, charger = 0;
static guint cable_connection_timeout_id = 0;

/** Bookkeeping data for power supply locating heuristics */
typedef struct power_device {
/** Device path used by udev */
const char *syspath;
/** Likelyhood of being power supply */
int score;
} power_device;

Expand Down

0 comments on commit 1e3378f

Please sign in to comment.