Skip to content

Commit

Permalink
uac: clang-format for coherent indentation and coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed May 18, 2023
1 parent 8187f19 commit f2c5879
Show file tree
Hide file tree
Showing 14 changed files with 1,741 additions and 1,985 deletions.
18 changes: 10 additions & 8 deletions src/modules/uac/api.h
Expand Up @@ -25,19 +25,21 @@ typedef int (*uac_replace_from_t)(sip_msg_t *, str *, str *);
typedef int (*uac_replace_to_t)(sip_msg_t *, str *, str *);
typedef int (*uac_req_send_t)(void);

typedef struct uac_binds {
uac_replace_from_t replace_from;
uac_replace_to_t replace_to;
uac_req_send_t req_send;
typedef struct uac_binds
{
uac_replace_from_t replace_from;
uac_replace_to_t replace_to;
uac_req_send_t req_send;
} uac_api_t;

typedef int (*bind_uac_f)(uac_api_t*);
typedef int (*bind_uac_f)(uac_api_t *);

int bind_uac(uac_api_t*);
int bind_uac(uac_api_t *);

inline static int load_uac_api(uac_api_t *uacb){
inline static int load_uac_api(uac_api_t *uacb)
{
bind_uac_f bind_uac_exports;
if(!(bind_uac_exports=(bind_uac_f)find_export("bind_uac",1,0))){
if(!(bind_uac_exports = (bind_uac_f)find_export("bind_uac", 1, 0))) {
LM_WARN("failed to import bind_uac\n");
return -1;
}
Expand Down

0 comments on commit f2c5879

Please sign in to comment.