Back to index

lightning-sunbird  0.9+nobinonly
Defines | Functions | Variables
ipcModuleUtil.h File Reference
#include "prlog.h"
#include "ipcModule.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define IPC_IMPL_GETMODULES(_modName, _modEntries)

Functions

PRStatus IPC_DispatchMsg (ipcClientHandle client, const nsID &target, const void *data, PRUint32 dataLen)
PRStatus IPC_SendMsg (ipcClientHandle client, const nsID &target, const void *data, PRUint32 dataLen)
ipcClientHandle IPC_GetClientByID (PRUint32 id)
ipcClientHandle IPC_GetClientByName (const char *name)
void IPC_EnumClients (ipcClientEnumFunc func, void *closure)
PRUint32 IPC_GetClientID (ipcClientHandle client)
PRBool IPC_ClientHasName (ipcClientHandle client, const char *name)
PRBool IPC_ClientHasTarget (ipcClientHandle client, const nsID &target)
void IPC_EnumClientNames (ipcClientHandle client, ipcClientNameEnumFunc func, void *closure)
void IPC_EnumClientTargets (ipcClientHandle client, ipcClientTargetEnumFunc func, void *closure)
PRStatus IPC_SendMsg (PRUint32 clientID, const nsID &target, const void *data, PRUint32 dataLen)

Variables

const ipcDaemonMethodsgIPCDaemonMethods

Define Documentation

#define IPC_IMPL_GETMODULES (   _modName,
  _modEntries 
)
Value:
const ipcDaemonMethods *gIPCDaemonMethods;                      \
    IPC_EXPORT int                                                  \
    IPC_GetModules(const ipcDaemonMethods *dmeths,                  \
                   const ipcModuleEntry **ents) {                   \
        /* XXX do version checking */                               \
        gIPCDaemonMethods = dmeths;                                 \
        *ents = _modEntries;                                        \
        return sizeof(_modEntries) / sizeof(ipcModuleEntry);        \
    }

Definition at line 140 of file ipcModuleUtil.h.


Function Documentation

PRBool IPC_ClientHasName ( ipcClientHandle  client,
const char *  name 
) [inline]

Definition at line 96 of file ipcModuleUtil.h.

{
    PR_ASSERT(gIPCDaemonMethods);
    return gIPCDaemonMethods->clientHasName(client, name);
}

Here is the caller graph for this function:

PRBool IPC_ClientHasTarget ( ipcClientHandle  client,
const nsID target 
) [inline]

Definition at line 103 of file ipcModuleUtil.h.

{
    PR_ASSERT(gIPCDaemonMethods);
    return gIPCDaemonMethods->clientHasTarget(client, target);
}

Here is the caller graph for this function:

PRStatus IPC_DispatchMsg ( ipcClientHandle  client,
const nsID target,
const void data,
PRUint32  dataLen 
) [inline]

Definition at line 54 of file ipcModuleUtil.h.

{
    PR_ASSERT(gIPCDaemonMethods);
    return gIPCDaemonMethods->dispatchMsg(client, target, data, dataLen);
}

Here is the caller graph for this function:

void IPC_EnumClientNames ( ipcClientHandle  client,
ipcClientNameEnumFunc  func,
void closure 
) [inline]

Definition at line 110 of file ipcModuleUtil.h.

Here is the caller graph for this function:

void IPC_EnumClients ( ipcClientEnumFunc  func,
void closure 
) [inline]

Definition at line 82 of file ipcModuleUtil.h.

{
    PR_ASSERT(gIPCDaemonMethods);
    gIPCDaemonMethods->enumClients(func, closure);
}

Here is the caller graph for this function:

void IPC_EnumClientTargets ( ipcClientHandle  client,
ipcClientTargetEnumFunc  func,
void closure 
) [inline]

Definition at line 117 of file ipcModuleUtil.h.

Here is the caller graph for this function:

Definition at line 68 of file ipcModuleUtil.h.

{
    PR_ASSERT(gIPCDaemonMethods);
    return gIPCDaemonMethods->getClientByID(id);
}

Here is the caller graph for this function:

ipcClientHandle IPC_GetClientByName ( const char *  name) [inline]

Definition at line 75 of file ipcModuleUtil.h.

{
    PR_ASSERT(gIPCDaemonMethods);
    return gIPCDaemonMethods->getClientByName(name);
}

Here is the caller graph for this function:

Definition at line 89 of file ipcModuleUtil.h.

{
    PR_ASSERT(gIPCDaemonMethods);
    return gIPCDaemonMethods->getClientID(client);
}

Here is the caller graph for this function:

PRStatus IPC_SendMsg ( ipcClientHandle  client,
const nsID target,
const void data,
PRUint32  dataLen 
) [inline]

Definition at line 61 of file ipcModuleUtil.h.

{
    PR_ASSERT(gIPCDaemonMethods);
    return gIPCDaemonMethods->sendMsg(client, target, data, dataLen);
}
PRStatus IPC_SendMsg ( PRUint32  clientID,
const nsID target,
const void data,
PRUint32  dataLen 
) [inline]

Definition at line 128 of file ipcModuleUtil.h.

{
    ipcClient *client = IPC_GetClientByID(clientID);
    if (!client)
        return PR_FAILURE;
    return IPC_SendMsg(client, target, data, dataLen);
}

Here is the call graph for this function:


Variable Documentation