MidgardWorkspaceStorage

MidgardWorkspaceStorage

Synopsis

#include <midgard/midgard.h>

                    MidgardWorkspaceStorage;
const gchar *       midgard_workspace_storage_get_path  (MidgardWorkspaceStorage *self);
MidgardWorkspaceStorage * midgard_workspace_storage_get_workspace_by_name
                                                        (MidgardWorkspaceStorage *self,
                                                         const gchar *name);
MidgardWorkspaceStorage ** midgard_workspace_storage_list_children
                                                        (MidgardWorkspaceStorage *self,
                                                         guint *n_objects);
gchar **            midgard_workspace_storage_list_workspace_names
                                                        (MidgardWorkspaceStorage *self,
                                                         guint *n_names);

Object Hierarchy

  GInterface
   +----MidgardWorkspaceStorage

Prerequisites

MidgardWorkspaceStorage requires GObject.

Known Implementations

MidgardWorkspaceStorage is implemented by MidgardWorkspace and MidgardWorkspaceContext.

Description

Details

MidgardWorkspaceStorage

typedef struct _MidgardWorkspaceStorage MidgardWorkspaceStorage;


midgard_workspace_storage_get_path ()

const gchar *       midgard_workspace_storage_get_path  (MidgardWorkspaceStorage *self);

Returned path may be NULL, if given object doesn't exists in storage

self :

MidgardWorkspaceStorage instance

Returns :

a path, given MidgardWorkspaceStorage is at. [transfer none]

Since 10.05.5


midgard_workspace_storage_get_workspace_by_name ()

MidgardWorkspaceStorage * midgard_workspace_storage_get_workspace_by_name
                                                        (MidgardWorkspaceStorage *self,
                                                         const gchar *name);

self :

MidgardWorkspaceStorage instance

name :

a name of MidgardWorkspaceStorage object to find

Returns :

(transfer full): (transfer full): (transfer full): (transfer full): (transfer full): (transfer full): (transfer full): (transfer full): newly allocated MidgardWorkspaceStorage object if found, NULL otherwise. [transfer full]

Since 10.05.5


midgard_workspace_storage_list_children ()

MidgardWorkspaceStorage ** midgard_workspace_storage_list_children
                                                        (MidgardWorkspaceStorage *self,
                                                         guint *n_objects);

In case of MidgardWorkspaceContext, all MidgardWorkspace objects from context are returned.

self :

MidgardWorkspaceStorage instance

n_objects :

a pointer to store number of returned objects

Returns :

newly allocated array of MidgardWorkspaceStorage objects. [array length=n_objects][transfer full]

Since 10.05.5


midgard_workspace_storage_list_workspace_names ()

gchar **            midgard_workspace_storage_list_workspace_names
                                                        (MidgardWorkspaceStorage *self,
                                                         guint *n_names);

self :

MidgardWorkspaceStorage instance

n_names :

a pointer to store number of returned names

Returns :

array of names. [transfer container][array length=n_names]

Since 10.05.5