#include <RegistrationTable.hpp>
Public Member Functions | |
RegistrationData (const char *n, const char *m, SessionID s, ServiceRegistrationData *regData) | |
RegistrationData (const char *n, SessionID s, ServiceRegistrationData *regData) | |
~RegistrationData () | |
bool | matches (const char *n, const char *m) |
bool | matches (const char *n, SessionID s) |
bool | matches (const char *n) |
bool | hasReferences () |
bool | isLibrary () |
bool | isEntryPoint () |
void | getRegistrationData (ServiceRegistrationData ®Data) |
void | addSessionReference (SessionID s) |
void | removeSessionReference (SessionID s) |
SessionCookie * | findSessionReference (SessionID s) |
void | removeSessionReference (SessionCookie *s) |
Public Attributes | |
RegistrationData * | next |
const char * | name |
const char * | moduleName |
const char * | procedureName |
uintptr_t | userData [2] |
uintptr_t | entryPoint |
size_t | dropAuthority |
SessionID | owner |
SessionCookie * | references |
Definition at line 66 of file RegistrationTable.hpp.
RegistrationData::RegistrationData | ( | const char * | n, |
const char * | m, | ||
SessionID | s, | ||
ServiceRegistrationData * | regData | ||
) |
Create registration data for a library registration item.
n | The callback name. |
m | The callback library. |
regData | The additional registration data sent with the message. |
Definition at line 49 of file RegistrationTable.cpp.
References dropAuthority, ServiceRegistrationData::dropAuthority, dupString(), entryPoint, moduleName, name, next, owner, procedureName, ServiceRegistrationData::procedureName, references, userData, and ServiceRegistrationData::userData.
RegistrationData::RegistrationData | ( | const char * | n, |
SessionID | s, | ||
ServiceRegistrationData * | regData | ||
) |
Register an inprocess item.
n | The name of the callback. |
s | The session id. |
regData | The service registration data. |
Definition at line 70 of file RegistrationTable.cpp.
References dropAuthority, ServiceRegistrationData::dropAuthority, dupString(), entryPoint, ServiceRegistrationData::entryPoint, moduleName, name, next, owner, procedureName, references, userData, and ServiceRegistrationData::userData.
RegistrationData::~RegistrationData | ( | ) |
Destructor for a registration data item.
Definition at line 87 of file RegistrationTable.cpp.
References moduleName, name, SessionCookie::next, procedureName, and references.
void RegistrationData::addSessionReference | ( | SessionID | s | ) |
Add an additional reference to a session.
s | The session id to add. |
Definition at line 139 of file RegistrationTable.cpp.
References SessionCookie::addReference(), findSessionReference(), SessionCookie::next, and references.
Referenced by RegistrationTable::registerLibraryCallback().
SessionCookie * RegistrationData::findSessionReference | ( | SessionID | s | ) |
Locate a session reference cound.
s | The target session identifier. |
Definition at line 181 of file RegistrationTable.cpp.
References SessionCookie::next, references, and SessionCookie::session.
Referenced by addSessionReference(), and removeSessionReference().
void RegistrationData::getRegistrationData | ( | ServiceRegistrationData & | regData | ) |
Copy the registration information into a message data item to be returned to the client.
regData | The returned registration data. |
Definition at line 109 of file RegistrationTable.cpp.
References dropAuthority, ServiceRegistrationData::dropAuthority, entryPoint, ServiceRegistrationData::entryPoint, moduleName, ServiceRegistrationData::moduleName, procedureName, ServiceRegistrationData::procedureName, userData, and ServiceRegistrationData::userData.
Referenced by RegistrationTable::queryCallback(), and RegistrationTable::queryLibraryCallback().
|
inline |
Definition at line 76 of file RegistrationTable.hpp.
References references.
Referenced by RegistrationTable::dropCallback(), and RegistrationTable::dropLibraryCallback().
|
inline |
Definition at line 78 of file RegistrationTable.hpp.
References moduleName.
Referenced by RegistrationTable::dropLibraryCallback().
|
inline |
Definition at line 77 of file RegistrationTable.hpp.
References moduleName.
|
inline |
Definition at line 75 of file RegistrationTable.hpp.
References name, and Utilities::strCaselessCompare().
|
inline |
Definition at line 73 of file RegistrationTable.hpp.
References moduleName, name, and Utilities::strCaselessCompare().
Referenced by RegistrationTable::locate().
|
inline |
Definition at line 74 of file RegistrationTable.hpp.
References name, owner, and Utilities::strCaselessCompare().
void RegistrationData::removeSessionReference | ( | SessionCookie * | s | ) |
Remove a session reference cookie from the chain.
s | The cookit to remove. |
Definition at line 200 of file RegistrationTable.cpp.
References SessionCookie::next, and references.
void RegistrationData::removeSessionReference | ( | SessionID | s | ) |
Decrement a session reference count.
s | The session identifier. |
Definition at line 160 of file RegistrationTable.cpp.
References findSessionReference(), and SessionCookie::removeReference().
Referenced by RegistrationTable::dropCallback(), and RegistrationTable::dropLibraryCallback().
size_t RegistrationData::dropAuthority |
Definition at line 92 of file RegistrationTable.hpp.
Referenced by RegistrationTable::dropCallback(), RegistrationTable::dropLibraryCallback(), getRegistrationData(), and RegistrationData().
uintptr_t RegistrationData::entryPoint |
Definition at line 91 of file RegistrationTable.hpp.
Referenced by getRegistrationData(), RegistrationData(), and RegistrationTable::updateCallback().
const char* RegistrationData::moduleName |
Definition at line 88 of file RegistrationTable.hpp.
Referenced by getRegistrationData(), isEntryPoint(), isLibrary(), matches(), RegistrationData(), and ~RegistrationData().
const char* RegistrationData::name |
Definition at line 87 of file RegistrationTable.hpp.
Referenced by matches(), RegistrationData(), and ~RegistrationData().
RegistrationData* RegistrationData::next |
Definition at line 86 of file RegistrationTable.hpp.
Referenced by RegistrationTable::freeProcessEntries(), RegistrationTable::locate(), RegistrationTable::registerCallback(), RegistrationTable::registerLibraryCallback(), RegistrationData(), RegistrationTable::remove(), and RegistrationTable::reorderBlocks().
SessionID RegistrationData::owner |
Definition at line 93 of file RegistrationTable.hpp.
Referenced by RegistrationTable::dropCallback(), RegistrationTable::dropLibraryCallback(), RegistrationTable::freeProcessEntries(), matches(), RegistrationTable::queryCallback(), and RegistrationData().
const char* RegistrationData::procedureName |
Definition at line 89 of file RegistrationTable.hpp.
Referenced by getRegistrationData(), RegistrationData(), and ~RegistrationData().
SessionCookie* RegistrationData::references |
Definition at line 94 of file RegistrationTable.hpp.
Referenced by addSessionReference(), findSessionReference(), hasReferences(), RegistrationData(), removeSessionReference(), and ~RegistrationData().
uintptr_t RegistrationData::userData[2] |
Definition at line 90 of file RegistrationTable.hpp.
Referenced by getRegistrationData(), and RegistrationData().