OpenMAMA
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 {
53 } mamaIoType;
54 
62 typedef void (MAMACALLTYPE *mamaIoCb) (mamaIo io,
63  mamaIoType ioType,
64  void* closure);
65 
81 MAMAExpDLL extern
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
100 
101 
102 #if defined( __cplusplus )
103 }
104 #endif
105 
106 #endif /* MamaIoH__ */
mamaIoType void * closure
Definition: io.h:63
Definition: io.h:50
mamaIoType ioType
Definition: io.h:63
const char mamaFtState void * closure
Definition: ft.h:54
Definition: io.h:49
Definition: io.h:52
Definition: io.h:51
Definition: io.h:46
MAMAExpDLL mama_status mamaIo_destroy(mamaIo io)
Destroy the IO.
MAMAExpDLL mama_status mamaIo_getDescriptor(mamaIo io, uint32_t *d)
Get the descriptor.
MAMAExpDLL mama_status mamaIo_create(mamaIo *result, mamaQueue queue, uint32_t descriptor, mamaIoCb action, mamaIoType ioType, void *closure)
Create a IO handler.
typedef void(MAMACALLTYPE *mamaIoCb)(mamaIo io
Prototype for callback invoked by IO handler.
struct mamaQueueImpl_ * mamaQueue
Definition: types.h:107
Definition: io.h:48
mamaIoType
IO Types.
Definition: io.h:44
struct mamaIoImpl * mamaIo
Definition: types.h:111
mama_status
Definition: status.h:37
Definition: io.h:47


© 2012 Linux Foundation