diff options
| author | Even Rouault <even.rouault@spatialys.com> | 2017-05-15 12:21:30 +0200 |
|---|---|---|
| committer | Even Rouault <even.rouault@spatialys.com> | 2017-05-15 12:21:30 +0200 |
| commit | 3c2972f924857016bb454201c7e92f25de9105ee (patch) | |
| tree | dee91c4c200c2e97c83fd4c46588bf923f23852c /src/lib/openjpip/session_manager.h | |
| parent | 28d2eabca79d06378843d1e94fecfb4a5e22178d (diff) | |
Reformat: apply reformattin on .h files (#128)
Diffstat (limited to 'src/lib/openjpip/session_manager.h')
| -rw-r--r-- | src/lib/openjpip/session_manager.h | 40 |
1 files changed, 21 insertions, 19 deletions
diff --git a/src/lib/openjpip/session_manager.h b/src/lib/openjpip/session_manager.h index 7952fc0d..1343b1e7 100644 --- a/src/lib/openjpip/session_manager.h +++ b/src/lib/openjpip/session_manager.h @@ -28,23 +28,23 @@ * POSSIBILITY OF SUCH DAMAGE. */ -#ifndef SESSION_MANAGER_H_ -# define SESSION_MANAGER_H_ +#ifndef SESSION_MANAGER_H_ +# define SESSION_MANAGER_H_ #include "channel_manager.h" #include "cachemodel_manager.h" /** Session parameters*/ -typedef struct session_param{ - channellist_param_t *channellist; /**< channel list pointer*/ - cachemodellist_param_t *cachemodellist; /**< cache list pointer*/ - struct session_param *next; /**< pointer to the next session*/ +typedef struct session_param { + channellist_param_t *channellist; /**< channel list pointer*/ + cachemodellist_param_t *cachemodellist; /**< cache list pointer*/ + struct session_param *next; /**< pointer to the next session*/ } session_param_t; /** Session list parameters*/ -typedef struct sessionlist_param{ - session_param_t *first; /**< first session pointer of the list*/ - session_param_t *last; /**< last session pointer of the list*/ +typedef struct sessionlist_param { + session_param_t *first; /**< first session pointer of the list*/ + session_param_t *last; /**< last session pointer of the list*/ } sessionlist_param_t; @@ -62,7 +62,7 @@ sessionlist_param_t * gene_sessionlist(void); * @param[in] sessionlist session list to insert the new session * @return pointer to the generated session */ -session_param_t * gene_session( sessionlist_param_t *sessionlist); +session_param_t * gene_session(sessionlist_param_t *sessionlist); /** * search a channel and its belonging session by channel ID @@ -73,10 +73,10 @@ session_param_t * gene_session( sessionlist_param_t *sessionlist); * @param[in,out] foundchannel address of the found channel pointer * @return if the channel is found (true) or not (false) */ -OPJ_BOOL search_session_and_channel( char cid[], - sessionlist_param_t *sessionlist, - session_param_t **foundsession, - channel_param_t **foundchannel); +OPJ_BOOL search_session_and_channel(char cid[], + sessionlist_param_t *sessionlist, + session_param_t **foundsession, + channel_param_t **foundchannel); /** * insert a cache model into a session @@ -84,7 +84,8 @@ OPJ_BOOL search_session_and_channel( char cid[], * @param[in] session session pointer * @param[in] cachemodel cachemodel pointer */ -void insert_cachemodel_into_session( session_param_t *session, cachemodel_param_t *cachemodel); +void insert_cachemodel_into_session(session_param_t *session, + cachemodel_param_t *cachemodel); /** @@ -94,7 +95,8 @@ void insert_cachemodel_into_session( session_param_t *session, cachemodel_param_ * @param[in] sessionlist session list pointer * @return if succeeded (true) or failed (false) */ -OPJ_BOOL delete_session( session_param_t **session, sessionlist_param_t *sessionlist); +OPJ_BOOL delete_session(session_param_t **session, + sessionlist_param_t *sessionlist); /** @@ -102,14 +104,14 @@ OPJ_BOOL delete_session( session_param_t **session, sessionlist_param_t *session * * @param[in,out] sessionlist address of the session list pointer */ -void delete_sessionlist( sessionlist_param_t **sessionlist); +void delete_sessionlist(sessionlist_param_t **sessionlist); /** * print all sessions * * @param[in] sessionlist session list pointer */ -void print_allsession( sessionlist_param_t *sessionlist); +void print_allsession(sessionlist_param_t *sessionlist); -#endif /* !SESSION_MANAGER_H_ */ +#endif /* !SESSION_MANAGER_H_ */ |
