~arges/ubuntu/quantal/rsyslog/fix-lp1059592

« back to all changes in this revision

Viewing changes to runtime/nsdsel_gtls.h

  • Committer: Bazaar Package Importer
  • Author(s): Michael Biebl
  • Date: 2009-02-15 21:56:23 UTC
  • mto: (3.2.4 squeeze) (1.1.9 upstream)
  • mto: This revision was merged to the branch mainline in revision 14.
  • Revision ID: james.westby@ubuntu.com-20090215215623-xsycf628eo3kguc0
Tags: upstream-3.20.4
ImportĀ upstreamĀ versionĀ 3.20.4

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/* An implementation of the nsd select interface for GnuTLS.
 
2
 *
 
3
 * Copyright (C) 2008 Rainer Gerhards and Adiscon GmbH.
 
4
 *
 
5
 * This file is part of the rsyslog runtime library.
 
6
 *
 
7
 * The rsyslog runtime library is free software: you can redistribute it and/or modify
 
8
 * it under the terms of the GNU Lesser General Public License as published by
 
9
 * the Free Software Foundation, either version 3 of the License, or
 
10
 * (at your option) any later version.
 
11
 *
 
12
 * The rsyslog runtime library is distributed in the hope that it will be useful,
 
13
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 
14
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 
15
 * GNU Lesser General Public License for more details.
 
16
 *
 
17
 * You should have received a copy of the GNU Lesser General Public License
 
18
 * along with the rsyslog runtime library.  If not, see <http://www.gnu.org/licenses/>.
 
19
 *
 
20
 * A copy of the GPL can be found in the file "COPYING" in this distribution.
 
21
 * A copy of the LGPL can be found in the file "COPYING.LESSER" in this distribution.
 
22
 */
 
23
 
 
24
#ifndef INCLUDED_NSDSEL_GTLS_H
 
25
#define INCLUDED_NSDSEL_GTLS_H
 
26
 
 
27
#include "nsd.h"
 
28
typedef nsdsel_if_t nsdsel_gtls_if_t; /* we just *implement* this interface */
 
29
 
 
30
/* the nsdsel_gtls object */
 
31
struct nsdsel_gtls_s {
 
32
        BEGINobjInstance;       /* Data to implement generic object - MUST be the first data element! */
 
33
        nsdsel_t *pTcp;         /* our aggregated ptcp sel handler (which does almost everything) */
 
34
        int iBufferRcvReady;    /* number of descriptiors where no RD select is needed because we have data in buf */
 
35
};
 
36
 
 
37
/* interface is defined in nsd.h, we just implement it! */
 
38
#define nsdsel_gtlsCURR_IF_VERSION nsdCURR_IF_VERSION
 
39
 
 
40
/* prototypes */
 
41
PROTOTYPEObj(nsdsel_gtls);
 
42
 
 
43
#endif /* #ifndef INCLUDED_NSDSEL_GTLS_H */