typedef struct asp_coord_header {
guint8 opcode;
guint8 seq_num;
-} __attribute__((packed)) asp_coord_header_t;
+} __attribute__((packed)) asp_coord_header_s;
typedef struct asp_request_header {
guint8 opcode;
guint8 seq_num;
guint8 session_mac[SESSION_MAC_BUF_SIZE];
guint32 session_id;
-} __attribute__((packed)) asp_request_header_t;
+} __attribute__((packed)) asp_request_header_s;
typedef struct asp_request_session {
guint8 opcode;
guint32 advertisement_id;
guint8 session_information_length;
guint8 session_information[SESSION_INFO_BUF_SIZE];
-} __attribute__((packed)) asp_request_session_t;
+} __attribute__((packed)) asp_request_session_s;
typedef struct asp_added_session {
guint8 opcode;
guint8 seq_num;
guint8 session_mac[SESSION_MAC_BUF_SIZE];
guint32 session_id;
-} __attribute__((packed)) asp_added_session_t;
+} __attribute__((packed)) asp_added_session_s;
typedef struct asp_rejected_session {
guint8 opcode;
guint8 seq_num;
guint8 session_mac[SESSION_MAC_BUF_SIZE];
guint32 session_id;
-} __attribute__((packed)) asp_rejected_session_t;
+} __attribute__((packed)) asp_rejected_session_s;
typedef struct asp_remove_session {
guint8 opcode;
guint8 session_mac[SESSION_MAC_BUF_SIZE];
guint32 session_id;
guint8 reason;
-} __attribute__((packed)) asp_remove_session_t;
+} __attribute__((packed)) asp_remove_session_s;
typedef struct asp_allowed_port {
guint8 opcode;
guint32 session_id;
guint16 port;
guint8 proto;
-} __attribute__((packed)) asp_allowed_port_t;
+} __attribute__((packed)) asp_allowed_port_s;
typedef struct asp_version {
guint8 opcode;
guint8 coordination_version;
guint8 vendor_information_length;
guint32 vendor_information;
-} __attribute__((packed)) asp_version_t;
+} __attribute__((packed)) asp_version_s;
typedef struct asp_deferred_session {
guint8 opcode;
guint32 session_id;
guint8 deferred_session__response_length;
guint8 deferred_session__response[DEFERRED_INFO_BUF_SIZE];
-} __attribute__((packed)) asp_deferred_session_t;
+} __attribute__((packed)) asp_deferred_session_s;
typedef struct asp_ack {
guint8 opcode;
guint8 seq_num;
-} __attribute__((packed)) asp_ack_t;
+} __attribute__((packed)) asp_ack_s;
typedef struct asp_nack {
guint8 opcode;
guint8 seq_num;
guint8 reason;
-} __attribute__((packed)) asp_nack_t;
+} __attribute__((packed)) asp_nack_s;
enum {
ASP_OPCODE_REQUEST_SESSION = 0x00,
gboolean asp_coordination_protocol_init();
gboolean asp_coordination_protocol_destroy();
gboolean asp_coordination_protocol_send_msg(GSocketAddress *input_sock_addr,
- gpointer input_data);
+ void *input_data);
#endif /* __ASP_COORDINATION_PROTOCOL_H__ */