FreeRDP
PubSub.c File Reference
#include <winpr/crt.h>
#include <winpr/collections.h>

Functions

wEventType * PubSub_GetEventTypes (wPubSub *pubSub, int *count)
 
void PubSub_Lock (wPubSub *pubSub)
 
void PubSub_Unlock (wPubSub *pubSub)
 
wEventType * PubSub_FindEventType (wPubSub *pubSub, const char *EventName)
 
void PubSub_AddEventTypes (wPubSub *pubSub, wEventType *events, int count)
 
int PubSub_Subscribe (wPubSub *pubSub, const char *EventName, pEventHandler EventHandler)
 
int PubSub_Unsubscribe (wPubSub *pubSub, const char *EventName, pEventHandler EventHandler)
 
int PubSub_OnEvent (wPubSub *pubSub, const char *EventName, void *context, wEventArgs *e)
 
wPubSub * PubSub_New (BOOL synchronized)
 
void PubSub_Free (wPubSub *pubSub)
 

Function Documentation

void PubSub_AddEventTypes ( wPubSub *  pubSub,
wEventType *  events,
int  count 
)

Here is the call graph for this function:

Here is the caller graph for this function:

wEventType* PubSub_FindEventType ( wPubSub *  pubSub,
const char *  EventName 
)

Here is the caller graph for this function:

void PubSub_Free ( wPubSub *  pubSub)

Here is the call graph for this function:

Here is the caller graph for this function:

wEventType* PubSub_GetEventTypes ( wPubSub *  pubSub,
int *  count 
)

WinPR: Windows Portable Runtime Publisher/Subscriber Pattern

Copyright 2012 Marc-Andre Moreau marca.nosp@m.ndre.nosp@m..more.nosp@m.au@g.nosp@m.mail..nosp@m.com

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. Events (C# Programming Guide) http://msdn.microsoft.com/en-us/library/awbftdfh.aspx Properties

void PubSub_Lock ( wPubSub *  pubSub)

Methods

Here is the call graph for this function:

Here is the caller graph for this function:

wPubSub* PubSub_New ( BOOL  synchronized)

Construction, Destruction

Here is the call graph for this function:

Here is the caller graph for this function:

int PubSub_OnEvent ( wPubSub *  pubSub,
const char *  EventName,
void context,
wEventArgs *  e 
)

Here is the call graph for this function:

int PubSub_Subscribe ( wPubSub *  pubSub,
const char *  EventName,
pEventHandler  EventHandler 
)

Here is the call graph for this function:

void PubSub_Unlock ( wPubSub *  pubSub)

Here is the call graph for this function:

Here is the caller graph for this function:

int PubSub_Unsubscribe ( wPubSub *  pubSub,
const char *  EventName,
pEventHandler  EventHandler 
)

Here is the call graph for this function: