Skip to content

Commit

Permalink
tmx: 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 9c15771 commit b0b4d5d
Show file tree
Hide file tree
Showing 5 changed files with 534 additions and 557 deletions.
10 changes: 5 additions & 5 deletions src/modules/tmx/api.h
@@ -1,12 +1,13 @@
#ifndef _TMX_API_H_
#define _TMX_API_H_

typedef int (*tmx_t_suspend_f)(struct sip_msg*, char*, char*);
typedef struct tmx_api {
typedef int (*tmx_t_suspend_f)(struct sip_msg *, char *, char *);
typedef struct tmx_api
{
tmx_t_suspend_f t_suspend;
} tmx_api_t;

typedef int (*bind_tmx_f)(tmx_api_t* api);
typedef int (*bind_tmx_f)(tmx_api_t *api);

static inline int load_tmx_api(tmx_api_t *api)
{
Expand All @@ -17,8 +18,7 @@ static inline int load_tmx_api(tmx_api_t *api)
LM_ERR("cannot find bind_tmx\n");
return -1;
}
if(bindtmx(api)<0)
{
if(bindtmx(api) < 0) {
LM_ERR("cannot bind tmx api\n");
return -1;
}
Expand Down

0 comments on commit b0b4d5d

Please sign in to comment.