GsAppList

GsAppList — An application list

Stability Level

Unstable, unless otherwise indicated

Functions

Types and Values

Object Hierarchy

    GObject
    ╰── GsAppList

Includes

#include <gnome-software.h>

Description

These functions provide a refcounted list of GsApp objects.

Functions

gs_app_list_new ()

GsAppList *
gs_app_list_new (void);

Creates a new list.

Returns

A newly allocated GsAppList


gs_app_list_add ()

void
gs_app_list_add (GsAppList *list,
                 GsApp *app);

Adds an application to the list, adding a reference.

Parameters

list

A GsAppList

 

app

A GsApp

 

gs_app_list_index ()

GsApp *
gs_app_list_index (GsAppList *list,
                   guint idx);

Gets an application at a specific position in the list.

Parameters

list

A GsAppList

 

idx

An index into the list

 

Returns

a GsApp, or NULL if invalid.

[transfer none]


gs_app_list_length ()

guint
gs_app_list_length (GsAppList *list);

Gets the length of the application list.

Parameters

list

A GsAppList

 

Returns

Integer

Types and Values

GS_TYPE_APP_LIST

#define GS_TYPE_APP_LIST (gs_app_list_get_type ())

GsAppList

typedef struct _GsAppList GsAppList;