Back to index

indicator-appmenu  12.10.0
Classes | Defines | Typedefs | Functions | Variables
load-app-info.c File Reference
#include <gio/gio.h>
#include <glib/gi18n.h>
#include "load-app-info.h"
#include "shared-values.h"

Go to the source code of this file.

Classes

struct  _menu_data_t

Defines

#define COLLECT(first,...)
#define OPTIONAL   G_MARKUP_COLLECT_OPTIONAL
#define STRDUP   G_MARKUP_COLLECT_STRDUP
#define STRING   G_MARKUP_COLLECT_STRING
#define NO_ATTRS()   COLLECT (G_MARKUP_COLLECT_INVALID, NULL)

Typedefs

typedef struct _menu_data_t

Functions

static void new_element (GMarkupParseContext *context, const gchar *name, const gchar **attribute_names, const gchar **attribute_values, gpointer user_data, GError **error)
static void end_element (GMarkupParseContext *context, const gchar *name, gpointer user_data, GError **error)

Variables

static GMarkupParser app_info_parser

Class Documentation

struct _menu_data_t

Definition at line 40 of file load-app-info.c.

Class Members
sqlite3 * db
gchar * desktopfile
gchar * domain
GQueue queue
gboolean seen_header
gboolean seen_menus
GString * statement

Define Documentation

#define COLLECT (   first,
  ... 
)
Value:
g_markup_collect_attributes (name,                                         \
                               attribute_names, attribute_values, error,     \
                               first, __VA_ARGS__, G_MARKUP_COLLECT_INVALID)
#define NO_ATTRS ( )    COLLECT (G_MARKUP_COLLECT_INVALID, NULL)
#define OPTIONAL   G_MARKUP_COLLECT_OPTIONAL
#define STRDUP   G_MARKUP_COLLECT_STRDUP
#define STRING   G_MARKUP_COLLECT_STRING

Typedef Documentation

typedef struct _menu_data_t

Definition at line 39 of file load-app-info.c.


Function Documentation

static void end_element ( GMarkupParseContext *  context,
const gchar *  name,
gpointer  user_data,
GError **  error 
) [static]
static void new_element ( GMarkupParseContext *  context,
const gchar *  name,
const gchar **  attribute_names,
const gchar **  attribute_values,
gpointer  user_data,
GError **  error 
) [static]

Variable Documentation

GMarkupParser app_info_parser [static]
Initial value:
 {
       start_element:  new_element,
       end_element:    end_element,
       text:           NULL,
       passthrough:    NULL,
       error:          NULL
}

Definition at line 31 of file load-app-info.c.