diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-28 17:18:04 +0100 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-02-28 17:18:04 +0100 |
commit | 50636ba267bb1930bce7c3baecdab8a245d52b05 (patch) | |
tree | 179f6b7c9706dbf5a3ee42cde0c642c92258da3b /tools/ompipe.h | |
parent | 76ded5e98bd51d5de306f21f8abd28ee3b006be2 (diff) | |
download | rsyslog-50636ba267bb1930bce7c3baecdab8a245d52b05.tar.gz rsyslog-50636ba267bb1930bce7c3baecdab8a245d52b05.tar.bz2 rsyslog-50636ba267bb1930bce7c3baecdab8a245d52b05.zip |
moved pipe code to its own module
... based on old omfile. Michael Biebl reported that xconsole seems
to have some issues with the new pipe code, so it was best to use
the old code for pipes. The optimizations were done to speed up file
access, so it doesn't really matter pipes do not receive them.
Diffstat (limited to 'tools/ompipe.h')
-rw-r--r-- | tools/ompipe.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/tools/ompipe.h b/tools/ompipe.h new file mode 100644 index 00000000..7bda4f93 --- /dev/null +++ b/tools/ompipe.h @@ -0,0 +1,34 @@ +/* ompipe.h + * These are the definitions for the build-in pipe output module. + * + * File begun on 2007-07-21 by RGerhards (extracted from syslogd.c) + * + * Copyright 2007 Rainer Gerhards and Adiscon GmbH. + * + * This pipe is part of rsyslog. + * + * Rsyslog is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * Rsyslog is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with Rsyslog. If not, see <http://www.gnu.org/licenses/>. + * + * A copy of the GPL can be found in the pipe "COPYING" in this distribution. + */ +#ifndef OMPIPE_H_INCLUDED +#define OMPIPE_H_INCLUDED 1 + +/* prototypes */ +rsRetVal modInitPipe(int iIFVersRequested __attribute__((unused)), int *ipIFVersProvided, rsRetVal (**pQueryEtryPt)(), rsRetVal (*pHostQueryEtryPt)(uchar*, rsRetVal (**)()), modInfo_t*); + +#endif /* #ifndef OMPIPE_H_INCLUDED */ +/* + * vi:set ai: + */ |