Back to index

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

Go to the source code of this file.

Classes

struct  ipcmMessageHeader
class  ipcmMessagePing
class  ipcmMessageForward
class  ipcmMessageClientHello
class  ipcmMessageClientAddName
class  ipcmMessageClientDelName
class  ipcmMessageClientAddTarget
class  ipcmMessageClientDelTarget
class  ipcmMessageQueryClientByName
class  ipcmMessageResult
class  ipcmMessageClientID
class  ipcmMessageClientState

Defines

#define IPCM_MSG_CLASS_REQ   (1 << 24)
#define IPCM_MSG_CLASS_ACK   (2 << 24)
#define IPCM_MSG_CLASS_PSH   (4 << 24)
#define IPCM_MSG_REQ_PING   (IPCM_MSG_CLASS_REQ | 1)
#define IPCM_MSG_REQ_FORWARD   (IPCM_MSG_CLASS_REQ | 2)
#define IPCM_MSG_REQ_CLIENT_HELLO   (IPCM_MSG_CLASS_REQ | 3)
#define IPCM_MSG_REQ_CLIENT_ADD_NAME   (IPCM_MSG_CLASS_REQ | 4)
#define IPCM_MSG_REQ_CLIENT_DEL_NAME   (IPCM_MSG_CLASS_REQ | 5)
#define IPCM_MSG_REQ_CLIENT_ADD_TARGET   (IPCM_MSG_CLASS_REQ | 6)
#define IPCM_MSG_REQ_CLIENT_DEL_TARGET   (IPCM_MSG_CLASS_REQ | 7)
#define IPCM_MSG_REQ_QUERY_CLIENT_BY_NAME   (IPCM_MSG_CLASS_REQ | 8)
#define IPCM_MSG_REQ_QUERY_CLIENT_NAMES   (IPCM_MSG_CLASS_REQ | 9)
#define IPCM_MSG_REQ_QUERY_CLIENT_TARGETS   (IPCM_MSG_CLASS_REQ | 10)
#define IPCM_MSG_ACK_RESULT   (IPCM_MSG_CLASS_ACK | 1)
#define IPCM_MSG_ACK_CLIENT_ID   (IPCM_MSG_CLASS_ACK | 2)
#define IPCM_MSG_ACK_CLIENT_NAMES   (IPCM_MSG_CLASS_ACK | 3)
#define IPCM_MSG_ACK_CLIENT_TARGETS   (IPCM_MSG_CLASS_ACK | 4)
#define IPCM_MSG_PSH_CLIENT_STATE   (IPCM_MSG_CLASS_PSH | 1)
#define IPCM_MSG_PSH_FORWARD   (IPCM_MSG_CLASS_PSH | 2)
#define IPCM_OK   0
#define IPCM_ERROR_GENERIC   -1
#define IPCM_ERROR_NO_CLIENT   -2
#define IPCM_CLIENT_STATE_UP   1
#define IPCM_CLIENT_STATE_DOWN   2

Functions

static int IPCM_GetType (const ipcMessage *msg)
static PRUint32 IPCM_GetRequestIndex (const ipcMessage *msg)
 IPCM_NewRequestIndex ()

Variables

const nsID IPCM_TARGET

Class Documentation

struct ipcmMessageHeader

Definition at line 115 of file ipcm.h.

Class Members
PRUint32 mRequestIndex
PRUint32 mType

Define Documentation

Definition at line 305 of file ipcm.h.

Definition at line 304 of file ipcm.h.

Definition at line 275 of file ipcm.h.

Definition at line 276 of file ipcm.h.

Definition at line 102 of file ipcm.h.

Definition at line 103 of file ipcm.h.

Definition at line 104 of file ipcm.h.

Definition at line 101 of file ipcm.h.

#define IPCM_MSG_CLASS_ACK   (2 << 24)

Definition at line 85 of file ipcm.h.

#define IPCM_MSG_CLASS_PSH   (4 << 24)

Definition at line 86 of file ipcm.h.

#define IPCM_MSG_CLASS_REQ   (1 << 24)

Definition at line 84 of file ipcm.h.

Definition at line 107 of file ipcm.h.

Definition at line 108 of file ipcm.h.

Definition at line 92 of file ipcm.h.

Definition at line 94 of file ipcm.h.

Definition at line 93 of file ipcm.h.

Definition at line 95 of file ipcm.h.

Definition at line 91 of file ipcm.h.

Definition at line 90 of file ipcm.h.

Definition at line 89 of file ipcm.h.

Definition at line 96 of file ipcm.h.

Definition at line 97 of file ipcm.h.

Definition at line 98 of file ipcm.h.

#define IPCM_OK   0

Definition at line 274 of file ipcm.h.


Function Documentation

static PRUint32 IPCM_GetRequestIndex ( const ipcMessage msg) [inline, static]

Definition at line 134 of file ipcm.h.

{
    return ((const ipcmMessageHeader *) msg->Data())->mRequestIndex;
}

Here is the call graph for this function:

Here is the caller graph for this function:

static int IPCM_GetType ( const ipcMessage msg) [inline, static]

Definition at line 125 of file ipcm.h.

{
    return ((const ipcmMessageHeader *) msg->Data())->mType;
}

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 51 of file ipcm.cpp.

{
    static PRInt32 sRequestIndex;
    return (PRUint32) PR_AtomicIncrement(&sRequestIndex);
}

Here is the call graph for this function:

Here is the caller graph for this function:


Variable Documentation

Definition at line 42 of file ipcm.cpp.