Main Page
Data Structures
Files
File List
Globals
All
Data Structures
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Macros
Pages
dqpublisher.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 MAMA_DQPUBLISHER_H__
23
#define MAMA_DQPUBLISHER_H__
24
25
#include "
mama/types.h
"
26
#include "wombat/wConfig.h"
27
28
#if defined( __cplusplus )
29
extern
"C"
30
{
31
#endif
/* defined( __cplusplus ) */
32
43
MAMAExpDLL
44
extern
mama_status
45
mamaDQPublisher_allocate
(
mamaDQPublisher
* result );
46
54
MAMAExpDLL
55
extern
mama_status
56
mamaDQPublisher_create
(
mamaDQPublisher
pub,
mamaTransport
transport,
57
const
char
* topic);
58
65
MAMAExpDLL
66
extern
mama_status
67
mamaDQPublisher_send
(
mamaDQPublisher
pub,
mamaMsg
msg
);
68
69
70
/*
71
* Send a p2p message reply.
72
*
73
* @param publisher The mamaPublisher from which to send the message.
74
* @param request The mamaMsg being responded to.
75
* @param reply The mamaMsg to be send
76
*/
77
MAMAExpDLL
78
extern
mama_status
79
mamaDQPublisher_sendReply
(
mamaDQPublisher
pub,
mamaMsg
request,
80
mamaMsg
reply) ;
81
82
83
MAMAExpDLL
84
extern
mama_status
85
mamaDQPublisher_sendReplyWithHandle
(
mamaDQPublisher
pub,
86
mamaMsgReply
replyAddress,
87
mamaMsg
reply);
88
89
MAMAExpDLL
90
extern
void
91
mamaDQPublisher_destroy
(
mamaDQPublisher
pub);
92
93
94
95
MAMAExpDLL
96
extern
void
97
mamaDQPublisher_setStatus
(
mamaDQPublisher
pub,
mamaMsgStatus
status
);
98
99
MAMAExpDLL
100
extern
void
101
mamaDQPublisher_setSenderId
(
mamaDQPublisher
pub, uint64_t senderid);
102
103
MAMAExpDLL
104
extern
void
105
mamaDQPublisher_setSeqNum
(
mamaDQPublisher
pub,
mama_seqnum_t
num);
106
107
MAMAExpDLL
108
extern
void
109
mamaDQPublisher_setClosure
(
mamaDQPublisher
pub,
void
*
closure
);
110
111
MAMAExpDLL
112
extern
void
113
mamaDQPublisher_enableSendTime
(
mamaDQPublisher
pub,
mama_bool_t
enable);
114
115
MAMAExpDLL
116
extern
void
*
117
mamaDQPublisher_getClosure
(
mamaDQPublisher
pub);
118
119
MAMAExpDLL
120
extern
void
121
mamaDQPublisher_setCache
(
mamaDQPublisher
pub,
void
* cache);
122
123
MAMAExpDLL
124
extern
void
*
125
mamaDQPublisher_getCache
(
mamaDQPublisher
pub);
126
127
#if defined( __cplusplus )
128
}
129
#endif
/* defined( __cplusplus ) */
130
131
#endif
/* MAMA_PUBLISHER_H_*/
© 2012 Linux Foundation