diff options
author | iphydf <iphydf@users.noreply.github.com> | 2018-07-09 17:19:41 +0000 |
---|---|---|
committer | iphydf <iphydf@users.noreply.github.com> | 2018-07-12 09:19:02 +0000 |
commit | 37f8f566d53a3e2603467aa0bbe1e29581ddd561 (patch) | |
tree | ed49d6b26816a47b37cf3a691909cdf5178d2b6f /toxcore/friend_connection.h | |
parent | 0b7e29e0197f18ea38a62f8f89a1fe60edb462a0 (diff) |
Fix style in some header files.
* Enums must by typedef'd.
* Comments at end of `#define` must be `//` comments.
* Typedef structs must not be anonymous.
* `;` at the end of a `#define` is invalid.
* Callback typedefs must list their parameter names.
* No nested structs.
* No inline use of function pointer types. Only typedef'd callback types
are allowed.
* Enum types are spelled in Camelsnake_Case.
* The argument to `#error` must be a string literal.
Diffstat (limited to 'toxcore/friend_connection.h')
-rw-r--r-- | toxcore/friend_connection.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/toxcore/friend_connection.h b/toxcore/friend_connection.h index a29cc7be..024befee 100644 --- a/toxcore/friend_connection.h +++ b/toxcore/friend_connection.h | |||
@@ -55,11 +55,11 @@ | |||
55 | #define SHARE_RELAYS_INTERVAL (5 * 60) | 55 | #define SHARE_RELAYS_INTERVAL (5 * 60) |
56 | 56 | ||
57 | 57 | ||
58 | enum { | 58 | typedef enum Friendconn_Status { |
59 | FRIENDCONN_STATUS_NONE, | 59 | FRIENDCONN_STATUS_NONE, |
60 | FRIENDCONN_STATUS_CONNECTING, | 60 | FRIENDCONN_STATUS_CONNECTING, |
61 | FRIENDCONN_STATUS_CONNECTED | 61 | FRIENDCONN_STATUS_CONNECTED |
62 | }; | 62 | } Friendconn_Status; |
63 | 63 | ||
64 | typedef struct Friend_Connections Friend_Connections; | 64 | typedef struct Friend_Connections Friend_Connections; |
65 | 65 | ||