Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
io.h
Go to the documentation of this file.
1
/* $Id$
2
*
3
* OpenMAMA: The open middleware agnostic messaging API
4
* Copyright (C) 2011 NYSE Technologies, Inc.
5
*
6
* This library is free software; you can redistribute it and/or
7
* modify it under the terms of the GNU Lesser General Public
8
* License as published by the Free Software Foundation; either
9
* version 2.1 of the License, or (at your option) any later version.
10
*
11
* This library is distributed in the hope that it will be useful,
12
* but WITHOUT ANY WARRANTY; without even the implied warranty of
13
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14
* Lesser General Public License for more details.
15
*
16
* You should have received a copy of the GNU Lesser General Public
17
* License along with this library; if not, write to the Free Software
18
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
19
* 02110-1301 USA
20
*/
21
22
#ifndef MamaIoH__
23
#define MamaIoH__
24
25
#include <
mama/types.h
>
26
#include <
mama/status.h
>
27
28
#if defined( __cplusplus )
29
extern
"C"
30
{
31
#endif
32
44
typedef
enum
45
{
46
MAMA_IO_READ
,
47
MAMA_IO_WRITE
,
48
MAMA_IO_CONNECT
,
49
MAMA_IO_ACCEPT
,
50
MAMA_IO_CLOSE
,
51
MAMA_IO_ERROR
,
52
MAMA_IO_EXCEPT
53
}
mamaIoType
;
54
62
typedef
void
(MAMACALLTYPE *mamaIoCb) (
mamaIo
io,
63
mamaIoType
ioType
,
64
void
*
closure
);
65
81
MAMAExpDLL
extern
82
mama_status
mamaIo_create
(
mamaIo
* result,
83
mamaQueue
queue,
84
uint32_t descriptor,
85
mamaIoCb action,
86
mamaIoType
ioType,
87
void
*
closure
);
88
92
MAMAExpDLL
extern
93
mama_status
mamaIo_getDescriptor
(
mamaIo
io, uint32_t* d);
94
98
MAMAExpDLL
extern
99
mama_status
mamaIo_destroy
(
mamaIo
io);
100
101
102
#if defined( __cplusplus )
103
}
104
#endif
105
106
#endif
/* MamaIoH__ */
© 2012 Linux Foundation