Skip to content

Commit

Permalink
lwsc: 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 0459451 commit d2e0421
Show file tree
Hide file tree
Showing 2 changed files with 193 additions and 193 deletions.
15 changes: 8 additions & 7 deletions src/modules/lwsc/api.h
Expand Up @@ -30,18 +30,19 @@

#include "../../core/str.h"

typedef int (*lwsc_api_request_f)(str *wsurl, str *wsproto, str *sdata,
str *rdata, int rtimeout);
typedef int (*lwsc_api_request_f)(
str *wsurl, str *wsproto, str *sdata, str *rdata, int rtimeout);

/**
* @brief Stateless (sl) API structure
*/
typedef struct lwsc_api {
typedef struct lwsc_api
{
int loaded;
lwsc_api_request_f request; /* send and receice data */
lwsc_api_request_f request; /* send and receice data */
} lwsc_api_t;

typedef int (*bind_lwsc_f)(lwsc_api_t* api);
typedef int (*bind_lwsc_f)(lwsc_api_t *api);

/**
* @brief Load the LWSX API
Expand All @@ -51,11 +52,11 @@ static inline int lwsc_load_api(lwsc_api_t *lwscb)
bind_lwsc_f bindlwsc;

bindlwsc = (bind_lwsc_f)find_export("bind_lwsc", 0, 0);
if ( bindlwsc == 0) {
if(bindlwsc == 0) {
LM_ERR("cannot find bind_lwsc exported function\n");
return -1;
}
if (bindlwsc(lwscb)==-1) {
if(bindlwsc(lwscb) == -1) {
LM_ERR("cannot bind lwsc api\n");
return -1;
}
Expand Down

0 comments on commit d2e0421

Please sign in to comment.