From a8823830d39bdbde8d4f4f34bfcb26dc4bf79741 Mon Sep 17 00:00:00 2001 From: iphydf Date: Mon, 12 Sep 2016 21:37:58 +0100 Subject: Add some astyle options to make it do more. It now enforces a bit more formatting. In particular, padding inside parentheses is removed. I would like it to remove padding after unary operators, but there seems to be no option for that. --- toxav/rtp.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'toxav/rtp.h') diff --git a/toxav/rtp.h b/toxav/rtp.h index 30d8ca65..1fbf21e3 100644 --- a/toxav/rtp.h +++ b/toxav/rtp.h @@ -64,7 +64,7 @@ struct RTPHeader { /* Non-standard TOX-specific fields */ uint16_t cpart;/* Data offset of the current part */ uint16_t tlen; /* Total message lenght */ -} __attribute__ ((packed)); +} __attribute__((packed)); /* Check alignment */ typedef char __fail_if_misaligned_1 [ sizeof(struct RTPHeader) == 80 ? 1 : -1 ]; @@ -74,7 +74,7 @@ struct RTPMessage { struct RTPHeader header; uint8_t data[]; -} __attribute__ ((packed)); +} __attribute__((packed)); /* Check alignment */ typedef char __fail_if_misaligned_2 [ sizeof(struct RTPMessage) == 82 ? 1 : -1 ]; @@ -96,16 +96,16 @@ typedef struct { BWController *bwc; void *cs; - int (*mcb) (void *, struct RTPMessage *msg); + int (*mcb)(void *, struct RTPMessage *msg); } RTPSession; -RTPSession *rtp_new (int payload_type, Messenger *m, uint32_t friendnumber, - BWController *bwc, void *cs, - int (*mcb) (void *, struct RTPMessage *)); -void rtp_kill (RTPSession *session); -int rtp_allow_receiving (RTPSession *session); -int rtp_stop_receiving (RTPSession *session); -int rtp_send_data (RTPSession *session, const uint8_t *data, uint16_t length); +RTPSession *rtp_new(int payload_type, Messenger *m, uint32_t friendnumber, + BWController *bwc, void *cs, + int (*mcb)(void *, struct RTPMessage *)); +void rtp_kill(RTPSession *session); +int rtp_allow_receiving(RTPSession *session); +int rtp_stop_receiving(RTPSession *session); +int rtp_send_data(RTPSession *session, const uint8_t *data, uint16_t length); #endif /* RTP_H */ -- cgit v1.2.3