diff options
author | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-12-18 21:00:44 +0100 |
---|---|---|
committer | Matthias Schiffer <mschiffer@universe-factory.net> | 2012-12-18 21:00:44 +0100 |
commit | 224ea7b0815187d2a638808e8a50fb29fda832f6 (patch) | |
tree | aabc417ce70e0d83258b8b51439e8f2ccc4b8ffe /src/types.h | |
parent | 766a0c145dad84b9af35b2bebc032be71509b3df (diff) | |
download | fastd-224ea7b0815187d2a638808e8a50fb29fda832f6.tar fastd-224ea7b0815187d2a638808e8a50fb29fda832f6.zip |
Convert type names to _t convention
Diffstat (limited to 'src/types.h')
-rw-r--r-- | src/types.h | 64 |
1 files changed, 32 insertions, 32 deletions
diff --git a/src/types.h b/src/types.h index 830c5dc..cda16ec 100644 --- a/src/types.h +++ b/src/types.h @@ -36,62 +36,62 @@ #include <config.h> -typedef enum _fastd_mode { +typedef enum fastd_mode { MODE_TAP, MODE_TUN, -} fastd_mode; +} fastd_mode_t; -typedef struct _fastd_buffer fastd_buffer; +typedef struct fastd_buffer fastd_buffer_t; -typedef union _fastd_peer_address fastd_peer_address; -typedef struct _fastd_bind_address fastd_bind_address; -typedef struct _fastd_socket fastd_socket; -typedef struct _fastd_peer_group_config fastd_peer_group_config; -typedef struct _fastd_peer_group fastd_peer_group; -typedef struct _fastd_peer_config fastd_peer_config; -typedef struct _fastd_eth_addr fastd_eth_addr; -typedef struct _fastd_peer fastd_peer; -typedef struct _fastd_peer_eth_addr fastd_peer_eth_addr; +typedef union fastd_peer_address fastd_peer_address_t; +typedef struct fastd_bind_address fastd_bind_address_t; +typedef struct fastd_socket fastd_socket_t; +typedef struct fastd_peer_group_config fastd_peer_group_config_t; +typedef struct fastd_peer_group fastd_peer_group_t; +typedef struct fastd_peer_config fastd_peer_config_t; +typedef struct fastd_eth_addr fastd_eth_addr_t; +typedef struct fastd_peer fastd_peer_t; +typedef struct fastd_peer_eth_addr fastd_peer_eth_addr_t; -typedef struct _fastd_log_file fastd_log_file; -typedef struct _fastd_log_fd fastd_log_fd; +typedef struct fastd_log_file fastd_log_file_t; +typedef struct fastd_log_fd fastd_log_fd_t; -typedef struct _fastd_config fastd_config; -typedef struct _fastd_context fastd_context; +typedef struct fastd_config fastd_config_t; +typedef struct fastd_context fastd_context_t; -typedef struct _fastd_protocol fastd_protocol; -typedef struct _fastd_method fastd_method; +typedef struct fastd_protocol fastd_protocol_t; +typedef struct fastd_method fastd_method_t; -typedef struct _fastd_handshake fastd_handshake; +typedef struct fastd_handshake fastd_handshake_t; -typedef struct _fastd_string_stack fastd_string_stack; +typedef struct fastd_string_stack fastd_string_stack_t; -typedef struct _fastd_resolve_return fastd_resolve_return; +typedef struct fastd_resolve_return fastd_resolve_return_t; #ifdef USE_CRYPTO_AES128CTR -typedef struct _fastd_crypto_aes128ctr fastd_crypto_aes128ctr; +typedef struct fastd_crypto_aes128ctr fastd_crypto_aes128ctr_t; #endif #ifdef USE_CRYPTO_GHASH -typedef struct _fastd_crypto_ghash fastd_crypto_ghash; +typedef struct fastd_crypto_ghash fastd_crypto_ghash_t; #endif /* May be defined by the protocol/method/crypto implementations however they like */ -typedef struct _fastd_protocol_config fastd_protocol_config; -typedef struct _fastd_protocol_state fastd_protocol_state; -typedef struct _fastd_protocol_peer_config fastd_protocol_peer_config; -typedef struct _fastd_protocol_peer_state fastd_protocol_peer_state; +typedef struct fastd_protocol_config fastd_protocol_config_t; +typedef struct fastd_protocol_state fastd_protocol_state_t; +typedef struct fastd_protocol_peer_config fastd_protocol_peer_config_t; +typedef struct fastd_protocol_peer_state fastd_protocol_peer_state_t; -typedef struct _fastd_method_session_state fastd_method_session_state; +typedef struct fastd_method_session_state fastd_method_session_state_t; #ifdef USE_CRYPTO_AES128CTR -typedef struct _fastd_crypto_aes128ctr_context fastd_crypto_aes128ctr_context; -typedef struct _fastd_crypto_aes128ctr_state fastd_crypto_aes128ctr_state; +typedef struct fastd_crypto_aes128ctr_context fastd_crypto_aes128ctr_context_t; +typedef struct fastd_crypto_aes128ctr_state fastd_crypto_aes128ctr_state_t; #endif #ifdef USE_CRYPTO_GHASH -typedef struct _fastd_crypto_ghash_context fastd_crypto_ghash_context; -typedef struct _fastd_crypto_ghash_state fastd_crypto_ghash_state; +typedef struct fastd_crypto_ghash_context fastd_crypto_ghash_context_t; +typedef struct fastd_crypto_ghash_state fastd_crypto_ghash_state_t; #endif #endif /* _FASTD_TYPES_H_ */ |