sbDBus.h File Reference

Songbird D-Bus Service Definitions. More...

#include <nsStringGlue.h>
#include <dbus/dbus.h>
Include dependency graph for sbDBus.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  sbDBusMessage
 
class  sbDBusConnection
 
class  sbDBusError
 

Macros

#define SB_DBUS_ENSURE_SUCCESS_BODY(aError, aReturnValue)   NS_WARNING("SB_DBUS_ENSURE_SUCCESS(" #aError ", " #aReturnValue ") failed");
 
#define SB_DBUS_ENSURE_SUCCESS(aError, aReturnValue)
 

Detailed Description

Songbird D-Bus Service Definitions.

Definition in file sbDBus.h.

Macro Definition Documentation

#define SB_DBUS_ENSURE_SUCCESS (   aError,
  aReturnValue 
)
Value:
if (dbus_error_is_set(&aError)) { \
SB_DBUS_ENSURE_SUCCESS_BODY(aError, aReturnValue) \
return aReturnValue; \
} \
PR_END_MACRO
#define SB_DBUS_ENSURE_SUCCESS_BODY(aError, aReturnValue)
Definition: sbDBus.h:311
return
Definition: FeedWriter.js:850
if(DEBUG_DATAREMOTES)

Ensure that the D-Bus error specified by aError indicates success. If it doesn't post a warning with the D-Bus error message and return from the current function with the return value specified by aReturnValue.

Parameters
aErrorD-Bus error.
aReturnValueReturn value expression.

Definition at line 326 of file sbDBus.h.

#define SB_DBUS_ENSURE_SUCCESS_BODY (   aError,
  aReturnValue 
)    NS_WARNING("SB_DBUS_ENSURE_SUCCESS(" #aError ", " #aReturnValue ") failed");

Post warning on failed ensure success using the error specified by aError and return value expression specified by aReturnValue.

Parameters
aErrorD-Bus error.
aReturnValueReturn value expression.

Definition at line 311 of file sbDBus.h.