diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-02 12:22:00 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2009-06-02 12:22:00 +0200 |
commit | 05ba5fc29fb13857b6fbb7c8f3c22489da3e73cf (patch) | |
tree | 2f62532cf874ad5bde53bcbf9998d9950040e086 /runtime/strms_sess.c | |
parent | 14d1209640e3554c4284eab136f9932cfc441126 (diff) | |
download | rsyslog-05ba5fc29fb13857b6fbb7c8f3c22489da3e73cf.tar.gz rsyslog-05ba5fc29fb13857b6fbb7c8f3c22489da3e73cf.tar.xz rsyslog-05ba5fc29fb13857b6fbb7c8f3c22489da3e73cf.zip |
slightly extended strms_sess interface
Diffstat (limited to 'runtime/strms_sess.c')
-rw-r--r-- | runtime/strms_sess.c | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/runtime/strms_sess.c b/runtime/strms_sess.c index 20920430..0aeebe03 100644 --- a/runtime/strms_sess.c +++ b/runtime/strms_sess.c @@ -64,7 +64,7 @@ ENDobjConstruct(strms_sess) /* ConstructionFinalizer */ static rsRetVal -strms_sessConstructFinalize(strms_sess_t __attribute__((unused)) *pThis) +strms_sessConstructFinalize(strms_sess_t *pThis) { DEFiRet; ISOBJ_TYPE_assert(pThis, strms_sess); @@ -170,6 +170,13 @@ SetUsrP(strms_sess_t *pThis, void *pUsr) } +static void * +GetUsrP(strms_sess_t *pThis) +{ + return pThis->pUsr; +} + + /* Closes a STRM session * No attention is paid to the return code * of close, so potential-double closes are not detected. @@ -248,6 +255,7 @@ CODESTARTobjQueryInterface(strms_sess) pIf->DataRcvd = DataRcvd; pIf->SetUsrP = SetUsrP; + pIf->GetUsrP = GetUsrP; pIf->SetStrmsrv = SetStrmsrv; pIf->SetLstnInfo = SetLstnInfo; pIf->SetHost = SetHost; |