Name | |
---|---|
typedef void(MAMACALLTYPE *)(mamaMsg msg, void *closure) | mamaInboxMsgCallback |
typedef void(MAMACALLTYPE *)(mama_status status, void *closure) | mamaInboxErrorCallback |
typedef void(MAMACALLTYPE *)(mamaInbox inbox, void *closure) | mamaInboxDestroyCallback |
Name | |
---|---|
MAMAExpDLL mama_status | mamaInbox_create(mamaInbox * inbox, mamaTransport transport, mamaQueue queue, mamaInboxMsgCallback msgCB, mamaInboxErrorCallback errorCB, void * closure) |
MAMAExpDLL mama_status | mamaInbox_create2(mamaInbox * inbox, mamaTransport transport, mamaQueue queue, mamaInboxMsgCallback msgCB, mamaInboxErrorCallback errorCB, mamaInboxDestroyCallback onInboxDestroyed, void * closure) |
MAMAExpDLL mama_status | mamaInbox_destroy(mamaInbox inbox) |
typedef void(MAMACALLTYPE * mamaInboxMsgCallback) (mamaMsg msg, void *closure);
Parameters:
Inbox structure for processing point to point messaging. Invoked in response to a p2p message being received.
typedef void(MAMACALLTYPE * mamaInboxErrorCallback) (mama_status status, void *closure);
Parameters:
NB. Not currently used. Invoked when an error is encountered during p2p messaging.
typedef void(MAMACALLTYPE * mamaInboxDestroyCallback) (mamaInbox inbox, void *closure);
Parameters:
Invoked whenever the inbox has been destroyed.
MAMAExpDLL mama_status mamaInbox_create(
mamaInbox * inbox,
mamaTransport transport,
mamaQueue queue,
mamaInboxMsgCallback msgCB,
mamaInboxErrorCallback errorCB,
void * closure
)
Parameters:
Return: mama_status MAMA_STATUS_OK if the function is successful.
Creates an inbox and stores at the address specified by the calling client.
MAMAExpDLL mama_status mamaInbox_create2(
mamaInbox * inbox,
mamaTransport transport,
mamaQueue queue,
mamaInboxMsgCallback msgCB,
mamaInboxErrorCallback errorCB,
mamaInboxDestroyCallback onInboxDestroyed,
void * closure
)
Parameters:
Return: mama_status MAMA_STATUS_OK if the function is successful.
Creates an inbox and stores at the address specified by the calling client.
MAMAExpDLL mama_status mamaInbox_destroy(
mamaInbox inbox
)
Parameters:
Return: mama_Status MAMA_STATUS_OK if function call successful.
Destroy the supplied inbox structure. Note that this function is asynchronous and is only guaranteed to have finished whenever the onInboxDestroyed function passed to the mamaInbox_create2 has been called.
/* $Id$
*
* OpenMAMA: The open middleware agnostic messaging API
* Copyright (C) 2011 NYSE Technologies, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public
* License as published by the Free Software Foundation; either
* version 2.1 of the License, or (at your option) any later version.
*
* This library 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
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this library; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
* 02110-1301 USA
*/
#ifndef MAMA_INBOX_H__
#define MAMA_INBOX_H__
#if defined(__cplusplus)
extern "C" {
#endif
typedef void (MAMACALLTYPE *mamaInboxMsgCallback) (mamaMsg msg, void *closure);
typedef void (MAMACALLTYPE *mamaInboxErrorCallback) ( mama_status status, void *closure);
typedef void (MAMACALLTYPE *mamaInboxDestroyCallback) ( mamaInbox inbox, void *closure);
MAMAExpDLL
extern mama_status
mamaInbox_create (mamaInbox* inbox,
mamaTransport transport,
mamaQueue queue,
mamaInboxMsgCallback msgCB,
mamaInboxErrorCallback errorCB,
void* closure);
MAMAExpDLL
extern mama_status
mamaInbox_create2 (mamaInbox* inbox,
mamaTransport transport,
mamaQueue queue,
mamaInboxMsgCallback msgCB,
mamaInboxErrorCallback errorCB,
mamaInboxDestroyCallback onInboxDestroyed,
void* closure);
MAMAExpDLL
extern mama_status
mamaInbox_destroy (mamaInbox inbox);
#if defined(__cplusplus)
}
#endif
#endif /* MAMA_INBOX_H__ */
Updated on 2023-03-31 at 15:29:16 +0100