Name | |
---|---|
typedef mama_status(MAMACALLTYPE *)(mamaSymbolListMember symbol, void *closure) | addSymbolCbType The registered add symbol callback is executed for each symbol added to the symbol list. |
typedef void(MAMACALLTYPE *)(mamaSymbolList symbolList, void *closure) | mamaSymbolListIterateCompleteFunc Function invoked when completing the iteration over the symbol list using mamaSymbolList_iterate(). |
typedef void(MAMACALLTYPE *)(mamaSymbolList symbolList, mamaSymbolListMember member, void *closure) | mamaSymbolListIterateMemberFunc Function prototype for mamaSymbolList_iterate() which iterates over each member of the symbol list. |
typedef mama_status(MAMACALLTYPE *)(mamaSymbolListMember symbol, void *closure) | removeSymbolCbType The registered remove symbol callback is executed just prior to a symbol being removed from the symbol list. |
Name | |
---|---|
MAMAExpDLL mama_status | mamaSymbolList_addMember(mamaSymbolList symbolList, mamaSymbolListMember member) Add a symbol member to the symbol list, this will cause the add callback to be invoked if it has been installed. |
MAMAExpDLL mama_status | mamaSymbolList_allocate(mamaSymbolList * symbolList) Allocate and initialize memory for a new symbolList, mamaSymbolList_deallocate should be called on the returned symbol list. |
MAMAExpDLL mamaSymbolListMember | mamaSymbolList_allocateMember(mamaSymbolList symbolList) Allocate a symbolListMember. |
MAMAExpDLL mama_status | mamaSymbolList_clear(mamaSymbolList symbolList, int membersToo) Clear the symbol list. |
MAMAExpDLL mama_status | mamaSymbolList_deallocate(mamaSymbolList symbolList) Free a symbol list created by mamaSymbolList_allocate. |
MAMAExpDLL mama_status | mamaSymbolList_deallocateMember(mamaSymbolList symbolList, mamaSymbolListMember member) Deallocate a symbolListMember. |
MAMAExpDLL mama_status | mamaSymbolList_deallocateWithMembers(mamaSymbolList symbolList) Free the memory for the symbolList and all members. |
MAMAExpDLL mama_status | mamaSymbolList_findMember(const mamaSymbolList symbolList, const char * symbol, const char * source, mamaTransport transport, mamaSymbolListMember * member) Find a symbol member in the symbol list. |
MAMAExpDLL mama_status | mamaSymbolList_getClosure(const mamaSymbolList symbolList, void ** closure) Get the closure associated with the this symbolList. |
MAMAExpDLL mama_status | mamaSymbolList_getSize(const mamaSymbolList symbolList, unsigned long * size) Get the size of the symbolList. |
MAMAExpDLL mama_status | mamaSymbolList_iterate(mamaSymbolList symbolList, mamaSymbolListIterateMemberFunc memberFunc, mamaSymbolListIterateCompleteFunc completeFunc, void * iterateClosure) Iterate over the symbol list. The “handler” function will be invoked for each. |
MAMAExpDLL mama_status | mamaSymbolList_removeMember(mamaSymbolList symbolList, const char * symbol, const char * source, mamaTransport transport, mamaSymbolListMember * member) Remove a symbol member from the symbol list. |
MAMAExpDLL mama_status | mamaSymbolList_removeMemberByRef(mamaSymbolList symbolList, mamaSymbolListMember member) Remove a symbol member from the symbol list. |
MAMAExpDLL mama_status | mamaSymbolList_setAddSymbolHandler(mamaSymbolList symbolList, addSymbolCbType addCb) Registers the user defined add symbol callback with the symbolList. |
MAMAExpDLL mama_status | mamaSymbolList_setClosure(mamaSymbolList symbolList, void * closure) Set the closure associated with the this symbolList. |
MAMAExpDLL mama_status | mamaSymbolList_setRemoveSymbolHandler(mamaSymbolList symbolList, removeSymbolCbType removeCb) Registers the user defined remove symbol callback with the symbolList. |
typedef mama_status(MAMACALLTYPE * addSymbolCbType) (mamaSymbolListMember symbol, void *closure);
The registered add symbol callback is executed for each symbol added to the symbol list.
Parameters:
Return: mama_status return code can be one of: MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
typedef void(MAMACALLTYPE * mamaSymbolListIterateCompleteFunc) (mamaSymbolList symbolList, void *closure);
Function invoked when completing the iteration over the symbol list using mamaSymbolList_iterate().
typedef void(MAMACALLTYPE * mamaSymbolListIterateMemberFunc) (mamaSymbolList symbolList, mamaSymbolListMember member, void *closure);
Function prototype for mamaSymbolList_iterate() which iterates over each member of the symbol list.
typedef mama_status(MAMACALLTYPE * removeSymbolCbType) (mamaSymbolListMember symbol, void *closure);
The registered remove symbol callback is executed just prior to a symbol being removed from the symbol list.
Parameters:
Prototype for remove symbol callback.
MAMAExpDLL mama_status mamaSymbolList_addMember(
mamaSymbolList symbolList,
mamaSymbolListMember member
)
Add a symbol member to the symbol list, this will cause the add callback to be invoked if it has been installed.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_allocate(
mamaSymbolList * symbolList
)
Allocate and initialize memory for a new symbolList, mamaSymbolList_deallocate should be called on the returned symbol list.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NOMEM MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mamaSymbolListMember mamaSymbolList_allocateMember(
mamaSymbolList symbolList
)
Allocate a symbolListMember.
Parameters:
Return: Pointer to the new member.
MAMAExpDLL mama_status mamaSymbolList_clear(
mamaSymbolList symbolList,
int membersToo
)
Clear the symbol list.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_deallocate(
mamaSymbolList symbolList
)
Free a symbol list created by mamaSymbolList_allocate.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_deallocateMember(
mamaSymbolList symbolList,
mamaSymbolListMember member
)
Deallocate a symbolListMember.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_deallocateWithMembers(
mamaSymbolList symbolList
)
Free the memory for the symbolList and all members.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_findMember(
const mamaSymbolList symbolList,
const char * symbol,
const char * source,
mamaTransport transport,
mamaSymbolListMember * member
)
Find a symbol member in the symbol list.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_INVALID_ARG - the member can’t be found. MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_getClosure(
const mamaSymbolList symbolList,
void ** closure
)
Get the closure associated with the this symbolList.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_getSize(
const mamaSymbolList symbolList,
unsigned long * size
)
Get the size of the symbolList.
Parameters:
Return: mama_status value can be one of: MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_iterate(
mamaSymbolList symbolList,
mamaSymbolListIterateMemberFunc memberFunc,
mamaSymbolListIterateCompleteFunc completeFunc,
void * iterateClosure
)
Iterate over the symbol list. The “handler” function will be invoked for each.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_removeMember(
mamaSymbolList symbolList,
const char * symbol,
const char * source,
mamaTransport transport,
mamaSymbolListMember * member
)
Remove a symbol member from the symbol list.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_INVALID_ARG - the member can’t be found. MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_removeMemberByRef(
mamaSymbolList symbolList,
mamaSymbolListMember member
)
Remove a symbol member from the symbol list.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_setAddSymbolHandler(
mamaSymbolList symbolList,
addSymbolCbType addCb
)
Registers the user defined add symbol callback with the symbolList.
Parameters:
addSymbolCbType
.Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
The registered callback will get called each time a symbol is added to the symbol list.
MAMAExpDLL mama_status mamaSymbolList_setClosure(
mamaSymbolList symbolList,
void * closure
)
Set the closure associated with the this symbolList.
Parameters:
Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
MAMAExpDLL mama_status mamaSymbolList_setRemoveSymbolHandler(
mamaSymbolList symbolList,
removeSymbolCbType removeCb
)
Registers the user defined remove symbol callback with the symbolList.
Parameters:
removeSymbolCbType
.Return: mama_status return code can be one of MAMA_STATUS_NULL_ARG MAMA_STATUS_OK
The registered callback will get called each time a symbol is deleted from the symbol list.
/* $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 MamaSymbolListH__
#define MamaSymbolListH__
/* *************************************************** */
/* Includes. */
/* *************************************************** */
#include "mama/mama.h"
#include <mama/config.h>
#include "mama/symbollisttypes.h"
#if defined(__cplusplus)
extern "C" {
#endif
/* *************************************************** */
/* Type Defines. */
/* *************************************************** */
typedef mama_status (MAMACALLTYPE *addSymbolCbType) (
mamaSymbolListMember symbol,
void* closure);
typedef void (MAMACALLTYPE *mamaSymbolListIterateCompleteFunc) (
mamaSymbolList symbolList,
void* closure);
typedef void (MAMACALLTYPE *mamaSymbolListIterateMemberFunc) (
mamaSymbolList symbolList,
mamaSymbolListMember member,
void* closure);
typedef mama_status (MAMACALLTYPE *removeSymbolCbType) (
mamaSymbolListMember symbol,
void* closure);
/* *************************************************** */
/* Public Function Prototypes. */
/* *************************************************** */
MAMAExpDLL
extern mama_status
mamaSymbolList_addMember(
mamaSymbolList symbolList,
mamaSymbolListMember member);
MAMAExpDLL
extern mama_status
mamaSymbolList_allocate(
mamaSymbolList *symbolList);
MAMAExpDLL
extern mamaSymbolListMember
mamaSymbolList_allocateMember(
mamaSymbolList symbolList);
MAMAExpDLL
extern mama_status
mamaSymbolList_clear(
mamaSymbolList symbolList,
int membersToo);
MAMAExpDLL
extern mama_status
mamaSymbolList_deallocate(
mamaSymbolList symbolList);
MAMAExpDLL
extern mama_status
mamaSymbolList_deallocateMember (
mamaSymbolList symbolList,
mamaSymbolListMember member);
MAMAExpDLL
extern mama_status
mamaSymbolList_deallocateWithMembers(
mamaSymbolList symbolList);
MAMAExpDLL
extern mama_status
mamaSymbolList_findMember(
const mamaSymbolList symbolList,
const char* symbol,
const char * source,
mamaTransport transport,
mamaSymbolListMember* member);
MAMAExpDLL
extern mama_status
mamaSymbolList_getClosure(
const mamaSymbolList symbolList,
void** closure);
MAMAExpDLL
extern mama_status
mamaSymbolList_getSize(
const mamaSymbolList symbolList,
unsigned long *size);
MAMAExpDLL
extern mama_status
mamaSymbolList_iterate(
mamaSymbolList symbolList,
mamaSymbolListIterateMemberFunc memberFunc,
mamaSymbolListIterateCompleteFunc completeFunc,
void* iterateClosure);
MAMAExpDLL
extern mama_status
mamaSymbolList_removeMember (
mamaSymbolList symbolList,
const char* symbol,
const char * source,
mamaTransport transport,
mamaSymbolListMember* member);
MAMAExpDLL
extern mama_status mamaSymbolList_removeMemberByRef(
mamaSymbolList symbolList,
mamaSymbolListMember member);
MAMAExpDLL
extern mama_status
mamaSymbolList_setAddSymbolHandler(
mamaSymbolList symbolList,
addSymbolCbType addCb);
MAMAExpDLL
extern mama_status
mamaSymbolList_setClosure(
mamaSymbolList symbolList,
void* closure);
MAMAExpDLL
extern mama_status
mamaSymbolList_setRemoveSymbolHandler(
mamaSymbolList symbolList,
removeSymbolCbType removeCb);
#if defined(__cplusplus)
}
#endif
#endif
Updated on 2023-03-31 at 15:29:17 +0100