Skip to content

Commit

Permalink
ims_qos: 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 fa2f17f commit d1a5dc6
Show file tree
Hide file tree
Showing 19 changed files with 4,369 additions and 3,913 deletions.
495 changes: 271 additions & 224 deletions src/modules/ims_qos/cdpeventprocessor.c

Large diffs are not rendered by default.

24 changes: 14 additions & 10 deletions src/modules/ims_qos/cdpeventprocessor.h
Expand Up @@ -44,22 +44,25 @@
*/

#ifndef CDPEVENTPROCESSOR
#define CDPEVENTPROCESSOR
#define CDPEVENTPROCESSOR

#include "../../core/locking.h"
#include "sem.h"
#include "rx_authdata.h"
#include "../../core/str.h"

typedef struct _cdp_cb_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 */
rx_authsessiondata_t *session_data; /* associated auth session data - can be null */
typedef struct _cdp_cb_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 */
rx_authsessiondata_t
*session_data; /* associated auth session data - can be null */
str rx_session_id;
struct _cdp_cb_event *next;
} cdp_cb_event_t;

typedef struct {
typedef struct
{
gen_lock_t *lock;
cdp_cb_event_t *head;
cdp_cb_event_t *tail;
Expand All @@ -73,10 +76,11 @@ extern str confirmed_qosrelease_headers;
int init_cdp_cb_event_list();
void destroy_cdp_cb_event_list();

cdp_cb_event_t* new_cdp_cb_event (int event, str *rx_session_id, rx_authsessiondata_t *session_data); /*create new event*/
void push_cdp_cb_event(cdp_cb_event_t* event); /*add event to stack*/
cdp_cb_event_t* pop_cdp_cb_event(); /*pop next (head) event off list*/
void free_cdp_cb_event(cdp_cb_event_t*); /*free memory allocated for event*/
cdp_cb_event_t *new_cdp_cb_event(int event, str *rx_session_id,
rx_authsessiondata_t *session_data); /*create new event*/
void push_cdp_cb_event(cdp_cb_event_t *event); /*add event to stack*/
cdp_cb_event_t *pop_cdp_cb_event(); /*pop next (head) event off list*/
void free_cdp_cb_event(cdp_cb_event_t *); /*free memory allocated for event*/

void cdp_cb_event_process();

Expand Down

0 comments on commit d1a5dc6

Please sign in to comment.