LibreOffice Module connectivity (master) 1
Macros | Typedefs | Functions | Variables
EApi.cxx File Reference
#include <rtl/ustring.hxx>
#include <osl/module.hxx>
#include "EApi.h"
Include dependency graph for EApi.cxx:

Go to the source code of this file.

Macros

#define DECLARE_FN_POINTERS   1
 

Typedefs

typedef void(* SymbolFunc) ()
 

Functions

template<size_t N>
static bool tryLink (osl::Module &rModule, const char *pName, const ApiMap(&pMap)[N])
 
bool EApiInit ()
 
ESourceRegistryget_e_source_registry ()
 

Variables

static const char * eBookLibNames []
 
const ApiMap aCommonApiMap []
 
const ApiMap aNewApiMap []
 
const ApiMap aClientApiMap38 []
 

Macro Definition Documentation

◆ DECLARE_FN_POINTERS

#define DECLARE_FN_POINTERS   1

Definition at line 21 of file EApi.cxx.

Typedef Documentation

◆ SymbolFunc

typedef void(* SymbolFunc) ()

Definition at line 30 of file EApi.cxx.

Function Documentation

◆ EApiInit()

bool EApiInit ( )

◆ get_e_source_registry()

ESourceRegistry * get_e_source_registry ( )

◆ tryLink()

template<size_t N>
static bool tryLink ( osl::Module &  rModule,
const char *  pName,
const ApiMap(&)  pMap[N] 
)
static

Definition at line 87 of file EApi.cxx.

References i, N, and pName.

Referenced by EApiInit().

Variable Documentation

◆ aClientApiMap38

const ApiMap aClientApiMap38[]
Initial value:
=
{
{ "e_book_client_connect_direct_sync", reinterpret_cast<SymbolFunc *>(&e_book_client_connect_direct_sync) }
}
void(* SymbolFunc)()
Definition: EApi.cxx:30
EAPI_EXTERN EBookClient *(* e_book_client_connect_direct_sync)(ESourceRegistry *registry, ESource *source, guint32 wait_for_connected_seconds, GCancellable *cancellable, GError **error)
Definition: EApi.h:149

Definition at line 81 of file EApi.cxx.

Referenced by EApiInit().

◆ aCommonApiMap

const ApiMap aCommonApiMap[]
Initial value:
=
{
{ "eds_check_version", reinterpret_cast<SymbolFunc *>(&eds_check_version) },
{ "e_contact_field_name", reinterpret_cast<SymbolFunc *>(&e_contact_field_name) },
{ "e_contact_get", reinterpret_cast<SymbolFunc *>(&e_contact_get) },
{ "e_contact_get_type", reinterpret_cast<SymbolFunc *>(&e_contact_get_type) },
{ "e_contact_field_id", reinterpret_cast<SymbolFunc *>(&e_contact_field_id) },
{ "e_book_new", reinterpret_cast<SymbolFunc *>(&e_book_new) },
{ "e_book_open", reinterpret_cast<SymbolFunc *>(&e_book_open) },
{ "e_book_get_source", reinterpret_cast<SymbolFunc *>(&e_book_get_source) },
{ "e_book_get_contacts", reinterpret_cast<SymbolFunc *>(&e_book_get_contacts) },
{ "e_book_query_field_test", reinterpret_cast<SymbolFunc *>(&e_book_query_field_test) },
{ "e_book_query_and", reinterpret_cast<SymbolFunc *>(&e_book_query_and) },
{ "e_book_query_or", reinterpret_cast<SymbolFunc *>(&e_book_query_or) },
{ "e_book_query_not", reinterpret_cast<SymbolFunc *>(&e_book_query_not) },
{ "e_book_query_ref", reinterpret_cast<SymbolFunc *>(&e_book_query_ref) },
{ "e_book_query_unref", reinterpret_cast<SymbolFunc *>(&e_book_query_unref) },
{ "e_book_query_from_string", reinterpret_cast<SymbolFunc *>(&e_book_query_from_string) },
{ "e_book_query_to_string", reinterpret_cast<SymbolFunc *>(&e_book_query_to_string) },
{ "e_book_query_field_exists", reinterpret_cast<SymbolFunc *>(&e_book_query_field_exists) }
}
EAPI_EXTERN const char *(* e_contact_field_name)(EContactField field_id)
Definition: EApi.h:49
EAPI_EXTERN EBookQuery *(* e_book_query_not)(EBookQuery *q, gboolean unref)
Definition: EApi.h:114
EAPI_EXTERN EContactField(* e_contact_field_id)(const char *field_name)
Definition: EApi.h:60
EAPI_EXTERN gboolean(* e_book_open)(EBook *book, gboolean only_if_exists, GError **error)
Definition: EApi.h:86
EAPI_EXTERN EBookQuery *(* e_book_query_field_test)(EContactField field, EBookQueryTest test, const char *value)
Definition: EApi.h:109
EAPI_EXTERN EBook *(* e_book_new)(ESource *source, GError **error)
Definition: EApi.h:83
EAPI_EXTERN gpointer(* e_contact_get)(EContact *contact, EContactField field_id)
Definition: EApi.h:50
EAPI_EXTERN ESource *(* e_book_get_source)(EBook *book)
Definition: EApi.h:91
EAPI_EXTERN EBookQuery *(* e_book_query_ref)(EBookQuery *q)
Definition: EApi.h:115
EAPI_EXTERN void(* e_book_query_unref)(EBookQuery *q)
Definition: EApi.h:116
EAPI_EXTERN EBookQuery *(* e_book_query_from_string)(const char *query_string)
Definition: EApi.h:118
EAPI_EXTERN EBookQuery *(* e_book_query_and)(int nqs, EBookQuery **qs, gboolean unref)
Definition: EApi.h:112
EAPI_EXTERN char *(* e_book_query_to_string)(EBookQuery *q)
Definition: EApi.h:117
EAPI_EXTERN const gchar *(* eds_check_version)(guint required_major, guint required_minor, guint required_micro)
Definition: EApi.h:145
EAPI_EXTERN GType(* e_contact_get_type)(void)
Definition: EApi.h:59
EAPI_EXTERN gboolean(* e_book_get_contacts)(EBook *book, EBookQuery *query, GList **contacts, GError **error)
Definition: EApi.h:96
EAPI_EXTERN EBookQuery *(* e_book_query_field_exists)(EContactField field)
Definition: EApi.h:108
EAPI_EXTERN EBookQuery *(* e_book_query_or)(int nqs, EBookQuery **qs, gboolean unref)
Definition: EApi.h:113

Definition at line 42 of file EApi.cxx.

Referenced by EApiInit().

◆ aNewApiMap

const ApiMap aNewApiMap[]
Initial value:
=
{
{ "e_source_registry_list_sources", reinterpret_cast<SymbolFunc *>(&e_source_registry_list_sources) },
{ "e_source_registry_new_sync", reinterpret_cast<SymbolFunc *>(&e_source_registry_new_sync) },
{ "e_source_has_extension", reinterpret_cast<SymbolFunc *>(&e_source_has_extension) },
{ "e_source_get_extension", reinterpret_cast<SymbolFunc *>(&e_source_get_extension) },
{ "e_source_backend_get_backend_name", reinterpret_cast<SymbolFunc *>(&e_source_backend_get_backend_name) },
{ "e_source_get_display_name", reinterpret_cast<SymbolFunc *>(&e_source_get_display_name) },
{ "e_source_get_uid", reinterpret_cast<SymbolFunc *>(&e_source_get_uid) },
{ "e_source_registry_ref_source", reinterpret_cast<SymbolFunc *>(&e_source_registry_ref_source) },
{ "e_client_open_sync", reinterpret_cast<SymbolFunc *>(&e_client_open_sync) },
{ "e_client_get_source", reinterpret_cast<SymbolFunc *>(&e_client_get_source) },
{ "e_book_client_get_contacts_sync", reinterpret_cast<SymbolFunc *>(&e_book_client_get_contacts_sync) },
{ "e_client_util_free_object_slist", reinterpret_cast<SymbolFunc *>(&e_client_util_free_object_slist) }
}
EAPI_EXTERN void(* e_client_util_free_object_slist)(GSList *objects)
Definition: EApi.h:153
EAPI_EXTERN ESource *(* e_client_get_source)(EClient *client)
Definition: EApi.h:151
EAPI_EXTERN gpointer(* e_source_get_extension)(ESource *source, const gchar *extension_name)
Definition: EApi.h:142
EAPI_EXTERN const gchar *(* e_source_backend_get_backend_name)(ESourceBackend *extension)
Definition: EApi.h:143
EAPI_EXTERN const gchar *(* e_source_get_display_name)(ESource *source)
Definition: EApi.h:144
EAPI_EXTERN ESourceRegistry *(* e_source_registry_new_sync)(GCancellable *cancellable, GError **error)
Definition: EApi.h:139
EAPI_EXTERN ESource *(* e_source_registry_ref_source)(ESourceRegistry *registry, const gchar *uid)
Definition: EApi.h:147
EAPI_EXTERN gboolean(* e_source_has_extension)(ESource *source, const gchar *extension_name)
Definition: EApi.h:141
EAPI_EXTERN gboolean(* e_book_client_get_contacts_sync)(EBookClient *client, const gchar *sexp, GSList **contacts, GCancellable *cancellable, GError **error)
Definition: EApi.h:152
EAPI_EXTERN const gchar *(* e_source_get_uid)(ESource *source)
Definition: EApi.h:146
EAPI_EXTERN GList *(* e_source_registry_list_sources)(ESourceRegistry *registry, const gchar *extension_name)
Definition: EApi.h:140
EAPI_EXTERN gboolean(* e_client_open_sync)(EClient *client, gboolean only_if_exists, GCancellable *cancellable, GError **error)
Definition: EApi.h:150

Definition at line 64 of file EApi.cxx.

Referenced by EApiInit().

◆ eBookLibNames

const char* eBookLibNames[]
static
Initial value:
= {
"libebook-1.2.so.21",
"libebook-1.2.so.20",
"libebook-1.2.so.19",
"libebook-1.2.so.16"
}

Definition at line 23 of file EApi.cxx.

Referenced by EApiInit().