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__ */
MAMA_IO_CONNECT
@ MAMA_IO_CONNECT
Definition: io.h:48
MAMA_IO_ACCEPT
@ MAMA_IO_ACCEPT
Definition: io.h:49
types.h
mama_status
mama_status
Definition: status.h:37
MAMA_IO_CLOSE
@ MAMA_IO_CLOSE
Definition: io.h:50
MAMA_IO_ERROR
@ MAMA_IO_ERROR
Definition: io.h:51
mamaIo_destroy
MAMAExpDLL mama_status mamaIo_destroy(mamaIo io)
Destroy the IO.
mamaIo_create
MAMAExpDLL mama_status mamaIo_create(mamaIo *result, mamaQueue queue, uint32_t descriptor, mamaIoCb action, mamaIoType ioType, void *closure)
Create a IO handler.
mamaIo
struct mamaIoImpl * mamaIo
Definition: types.h:111
MAMA_IO_READ
@ MAMA_IO_READ
Definition: io.h:46
MAMA_IO_EXCEPT
@ MAMA_IO_EXCEPT
Definition: io.h:52
mamaIoCb
void(MAMACALLTYPE * mamaIoCb)(mamaIo io, mamaIoType ioType, void *closure)
Prototype for callback invoked by IO handler.
Definition: io.h:62
mamaIoType
mamaIoType
IO Types.
Definition: io.h:44
MAMA_IO_WRITE
@ MAMA_IO_WRITE
Definition: io.h:47
mamaQueue
struct mamaQueueImpl_ * mamaQueue
Definition: types.h:107
status.h
mamaIo_getDescriptor
MAMAExpDLL mama_status mamaIo_getDescriptor(mamaIo io, uint32_t *d)
Get the descriptor.


© 2012 Linux Foundation