Skip to content

Commit

Permalink
ims_registrar_pcscf: clang-format for coherent indentation and coding…
Browse files Browse the repository at this point in the history
… style
  • Loading branch information
linuxmaniac committed May 18, 2023
1 parent d1a5dc6 commit d0d11e9
Show file tree
Hide file tree
Showing 16 changed files with 1,981 additions and 1,704 deletions.
359 changes: 188 additions & 171 deletions src/modules/ims_registrar_pcscf/async_reginfo.c

Large diffs are not rendered by default.

22 changes: 13 additions & 9 deletions src/modules/ims_registrar_pcscf/async_reginfo.h
Expand Up @@ -53,9 +53,10 @@
#define REG_EVENT_SUBSCRIBE 0
#define REG_EVENT_PUBLISH 1

typedef struct _reginfo_event{
int event; /* event id */
time_t registered; /* time event was added to list - useful if we want to report on things that have taken too long to process */
typedef struct _reginfo_event
{
int event; /* event id */
time_t registered; /* time event was added to list - useful if we want to report on things that have taken too long to process */
str publ_body;
str publ_id;
str publ_content_type;
Expand All @@ -72,7 +73,8 @@ typedef struct _reginfo_event{
struct _reginfo_event *next;
} reginfo_event_t;

typedef struct {
typedef struct
{
int size;
gen_lock_t *lock;
reginfo_event_t *head;
Expand All @@ -84,11 +86,13 @@ typedef struct {
int init_reginfo_event_list();
void destroy_reginfo_event_list();

reginfo_event_t* new_reginfo_event (int event, str *publ_body, str *publ_id, str *publ_content_type, str *subs_remote_target, str *subs_watcher_uri,
str *subs_contact, str *subs_outbound_proxy, int expires, int flag, int source_flag, int reg_info_event, str *extra_headers, str *pres_uri);
void push_reginfo_event(reginfo_event_t* event); /*add event to stack*/
reginfo_event_t* pop_reginfo_event(); /*pop next (head) event off list*/
void free_reginfo_event(reginfo_event_t*); /*free memory allocated for event*/
reginfo_event_t *new_reginfo_event(int event, str *publ_body, str *publ_id,
str *publ_content_type, str *subs_remote_target, str *subs_watcher_uri,
str *subs_contact, str *subs_outbound_proxy, int expires, int flag,
int source_flag, int reg_info_event, str *extra_headers, str *pres_uri);
void push_reginfo_event(reginfo_event_t *event); /*add event to stack*/
reginfo_event_t *pop_reginfo_event(); /*pop next (head) event off list*/
void free_reginfo_event(reginfo_event_t *); /*free memory allocated for event*/

void reginfo_event_process();

Expand Down

0 comments on commit d0d11e9

Please sign in to comment.