Changeset 7029 in vbox for trunk/src/libs/xpcom18a4/ipc/ipcd/shared
- Timestamp:
- Feb 20, 2008 11:54:09 AM (17 years ago)
- Location:
- trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcIDList.h
r1 r7029 86 86 } 87 87 88 voidFindAndDelete(const nsID &id)88 PRBool FindAndDelete(const nsID &id) 89 89 { 90 90 ipcIDNode *node = FindNodeBefore(mHead, id); 91 if (node) 91 if (node) { 92 92 DeleteAfter(node); 93 else 93 return PR_TRUE; 94 } 95 else if (!IsEmpty()) { 94 96 DeleteFirst(); 97 return PR_TRUE; 98 } 99 100 return PR_FALSE; 95 101 } 96 102 -
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcStringList.h
r1 r7029 92 92 } 93 93 94 voidFindAndDelete(const char *str)94 PRBool FindAndDelete(const char *str) 95 95 { 96 96 ipcStringNode *node = FindNodeBefore(mHead, str); 97 if (node) 97 if (node) { 98 98 DeleteAfter(node); 99 else 99 return PR_TRUE; 100 } 101 else if (!IsEmpty()) { 100 102 DeleteFirst(); 103 return PR_TRUE; 104 } 105 106 return PR_FALSE; 101 107 } 102 108 -
trunk/src/libs/xpcom18a4/ipc/ipcd/shared/src/ipcm.h
r1 r7029 129 129 130 130 // 131 // return IPCM message request index. 131 // return IPCM message request index. 132 132 // 133 133 static inline PRUint32 … … 258 258 // This request message has as its payload a null-terminated ASCII character 259 259 // string indicating the client name to query. 260 // 260 // 261 261 262 262 // ACKNOWLEDGEMENTS … … 272 272 // codes): 273 273 // 274 #define IPCM_OK 0 // success: generic 275 #define IPCM_ERROR_GENERIC -1 // failure: generic 276 #define IPCM_ERROR_NO_CLIENT -2 // failure: client does not exist 274 #define IPCM_OK 0 // success: generic 275 #define IPCM_ERROR_GENERIC -1 // failure: generic 276 #define IPCM_ERROR_NO_CLIENT -2 // failure: client does not exist 277 #define IPCM_ERROR_INVALID_ARG -3 // failure: invalid request argument 278 #define IPCM_ERROR_NO_SUCH_DATA -4 // failure: requested data does not exist 279 #define IPCM_ERROR_ALREADY_EXISTS -5 // failure: data to set already exists 277 280 278 281 // … … 310 313 // This message is sent by the daemon to a client on behalf of another client. 311 314 // The recipient is expected to unpack the contained message and process it. 312 // 315 // 313 316 // The payload of this message matches the payload of IPCM_MSG_REQ_FORWARD, 314 317 // with the exception that the clientID field is set to the clientID of the … … 323 326 // adds no additional member variables. |operator new| should be used 324 327 // to allocate one of the IPCM helper classes, e.g.: 325 // 328 // 326 329 // ipcMessage *msg = new ipcmMessageClientHello("foo"); 327 330 //
Note:
See TracChangeset
for help on using the changeset viewer.