Skip to content

Commit

Permalink
ims_ipsec_pcscf: clang-format for coherent indentation and coding style
Browse files Browse the repository at this point in the history
  • Loading branch information
linuxmaniac committed Nov 11, 2023
1 parent cd510d6 commit 7ad44f2
Show file tree
Hide file tree
Showing 13 changed files with 2,714 additions and 2,473 deletions.
1,460 changes: 774 additions & 686 deletions src/modules/ims_ipsec_pcscf/cmd.c

Large diffs are not rendered by default.

19 changes: 10 additions & 9 deletions src/modules/ims_ipsec_pcscf/cmd.h
Original file line number Diff line number Diff line change
Expand Up @@ -47,26 +47,27 @@
#ifndef IPSEC_CMD_H
#define IPSEC_CMD_H

typedef void (*contact_expired_t)(pcontact_t* c, int type, void* param);
typedef void (*contact_expired_t)(pcontact_t *c, int type, void *param);
typedef int (*reconfig_tunnels_t)();

/*! ipsec pcscf API export structure */
typedef struct ipsec_pcscf_api {
contact_expired_t ipsec_on_expire;
reconfig_tunnels_t ipsec_reconfig;
typedef struct ipsec_pcscf_api
{
contact_expired_t ipsec_on_expire;
reconfig_tunnels_t ipsec_reconfig;
} ipsec_pcscf_api_t;

/*! ipsec pcscf API export bind function */
typedef int (*bind_ipsec_pcscf_t)(ipsec_pcscf_api_t* api);
typedef int (*bind_ipsec_pcscf_t)(ipsec_pcscf_api_t *api);

struct sip_msg;
struct udomain_t;

int ipsec_create(struct sip_msg* m, udomain_t* d, int _cflags);
int ipsec_forward(struct sip_msg* m, udomain_t* d, int _cflags);
int ipsec_destroy(struct sip_msg* m, udomain_t* d);
int ipsec_create(struct sip_msg *m, udomain_t *d, int _cflags);
int ipsec_forward(struct sip_msg *m, udomain_t *d, int _cflags);
int ipsec_destroy(struct sip_msg *m, udomain_t *d);
int ipsec_cleanall();
int ipsec_reconfig();
void ipsec_on_expire(pcontact_t* c, int type, void* param);
void ipsec_on_expire(pcontact_t *c, int type, void *param);

#endif /* IPSEC_CMD_H */

0 comments on commit 7ad44f2

Please sign in to comment.