session API for mapiproxy modules More...
#include "mapiproxy/dcesrv_mapiproxy.h"#include "libmapiproxy.h"Functions | |
| bool | mpm_session_cmp (struct mpm_session *session, struct dcesrv_call_state *dce_call) |
| bool | mpm_session_cmp_sub (struct mpm_session *session, struct server_id sid, uint32_t context_id) |
| bool | mpm_session_increment_ref_count (struct mpm_session *session) |
| struct mpm_session * | mpm_session_init (TALLOC_CTX *mem_ctx, struct dcesrv_call_state *dce_call) |
| struct mpm_session * | mpm_session_new (TALLOC_CTX *mem_ctx, struct server_id serverid, uint32_t context_id) |
| bool | mpm_session_release (struct mpm_session *session) |
| bool | mpm_session_set_destructor (struct mpm_session *session, bool(*destructor)(void *)) |
| bool | mpm_session_set_private_data (struct mpm_session *session, void *private_data) |
session API for mapiproxy modules
| bool mpm_session_cmp | ( | struct mpm_session * | session, |
| struct dcesrv_call_state * | dce_call | ||
| ) |
Compare the mpm session with the session context one
This function is a wrapper on mpm_session_cmp_sub
| session | pointer to the mapiproxy module session |
| dce_call | pointer to the session context |
References mpm_session_cmp_sub().
Referenced by cache_dispatch(), cache_pull_OpenAttach(), cache_pull_OpenMessage(), cache_pull_OpenStream(), cache_pull_Release(), cache_push_OpenAttach(), cache_push_OpenMessage(), cache_push_OpenStream(), and cache_push_ReadStream().
| bool mpm_session_cmp_sub | ( | struct mpm_session * | session, |
| struct server_id | sid, | ||
| uint32_t | context_id | ||
| ) |
Compare the mpm session with the session context one
| session | pointer to the mapiproxy module session |
| sid | reference to a server_id structure to compare |
| context_id | the connection context id to compare |
Referenced by mpm_session_cmp().
| bool mpm_session_increment_ref_count | ( | struct mpm_session * | session | ) |
Increment the ref_count associated to a session
| session | pointer to the session where to increment ref_count |
Referenced by dcesrv_EcDoConnect(), dcesrv_EcDoConnectEx(), and dcesrv_NspiBind().
|
read |
Create and return an allocated pointer to a mpm session
| mem_ctx | pointer to the memory context |
| dce_call | pointer to the session context |
References mpm_session_new().
Referenced by cache_pull_OpenAttach(), cache_pull_OpenMessage(), cache_pull_OpenStream(), dcesrv_EcDoConnect(), dcesrv_EcDoConnectEx(), and dcesrv_NspiBind().
|
read |
Create and return an allocated pointer to a mpm session
| mem_ctx | pointer to the memory context |
| serverid | reference to the session context server identifier structure |
| context_id | reference to the context identifier |
Referenced by mpm_session_init().
| bool mpm_session_release | ( | struct mpm_session * | session | ) |
Release a mapiproxy session context
| session | pointer to the mpm session context |
Referenced by cache_pull_Release(), dcesrv_EcDoDisconnect(), and dcesrv_NspiUnbind().
| bool mpm_session_set_destructor | ( | struct mpm_session * | session, |
| bool(*)(void *) | destructor | ||
| ) |
Set the mpm session destructor
| session | pointer to the mpm session context |
| destructor | pointer to the destructor function |
Referenced by dcesrv_EcDoConnect(), dcesrv_EcDoConnectEx(), and dcesrv_NspiBind().
| bool mpm_session_set_private_data | ( | struct mpm_session * | session, |
| void * | private_data | ||
| ) |
Set the mpm session pointer on private data
| session | pointer to the mpm session context |
| private_data | generic pointer on private data |
Referenced by dcesrv_EcDoConnect(), dcesrv_EcDoConnectEx(), and dcesrv_NspiBind().
|
|
This content is licensed under the Creative Commons Attribution ShareAlike License v. 3.0: http://creativecommons.org/licenses/by-sa/3.0/ |