blueZync

Synchronize Bluetooth phone with Thunderbird

Develpers' detailed documentation for the mozilla-sync plugin for OpenSync. A part of blueZync.

mozilla-xpcom.h File Reference


Detailed Description

Functions for hooking up to XPCOM.

#include <glib.h>

Include dependency graph for mozilla-xpcom.h:

This graph shows which files directly or indirectly include this file:


Functions

gboolean mozilla_log_info (char **pSzError, void(*pLogFunction)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...))
 Print a bit of info on XPCOM in the log.
gboolean mozilla_shutdown (char **pSzError, void(*pLogFunction)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...))
 Finalize the use of XPCOM.
gboolean mozilla_startup (const char *szProfileDirectory, gboolean *pWasStarted, char **pSzError, void(*pLogFunction)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...))
 Initialize the use of XPCOM.

Function Documentation

gboolean mozilla_log_info ( char **  pSzError,
void(*)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...)  pLogFunction 
)

Print a bit of info on XPCOM in the log.

Parameters:
pSzError Pointer to string, into which we shall write an error message if we return false
pLogFunction Function used to log information text
Returns:
TRUE on success; FALSE on error

References LOG, MOZ_ERROR_CHECK, and visitor().

Referenced by main().

Here is the call graph for this function:

gboolean mozilla_shutdown ( char **  pSzError,
void(*)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...)  pLogFunction 
)

Finalize the use of XPCOM.

Parameters:
pSzError Pointer to string, into which we shall write an error message if we return false
pLogFunction Function used to log information text
Returns:
TRUE on success; FALSE on error

References LOG, and MOZ_ERROR_CHECK.

Referenced by main(), and mozilla_sync_disconnect().

gboolean mozilla_startup ( const char *  szProfileDirectory,
gboolean *  pWasStarted,
char **  pSzError,
void(*)(int level, bool sensitive, const char *szFile, int iLine, const char *szFunc, const char *szFormat,...)  pLogFunction 
)

Initialize the use of XPCOM.

Parameters:
szProfileDirectory Path to the users profile directory
pWasStarted Set to true, if XPCOM was already started. If so, remember NOT to call mozilla_shutdown
pSzError Pointer to string, into which we shall write an error message if we return false
pLogFunction Function used to log information text
Returns:
TRUE on success; FALSE on error

References LOG, MOZ_ERROR_CHECK, mozilla_getversion(), NS_NewProfileDirServiceProvider(), and nsProfileDirServiceProvider::Register().

Referenced by main(), and mozilla_sync_connect().

Here is the call graph for this function: