Midgard2 Reference Manual | ||||
---|---|---|---|---|
Top | Description | Object Hierarchy | Prerequisites | Known Implementations |
#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
);
MidgardWorkspaceStorage is implemented by MidgardWorkspace and MidgardWorkspaceContext.
const gchar * midgard_workspace_storage_get_path (MidgardWorkspaceStorage *self
);
Returned path may be NULL
, if given object doesn't exists in storage
|
MidgardWorkspaceStorage instance |
Returns : |
a path, given MidgardWorkspaceStorage is at. [transfer none] |
Since 10.05.5
MidgardWorkspaceStorage * midgard_workspace_storage_get_workspace_by_name (MidgardWorkspaceStorage *self
,const gchar *name
);
|
MidgardWorkspaceStorage instance |
|
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
MidgardWorkspaceStorage ** midgard_workspace_storage_list_children (MidgardWorkspaceStorage *self
,guint *n_objects
);
In case of MidgardWorkspaceContext, all MidgardWorkspace objects from context are returned.
|
MidgardWorkspaceStorage instance |
|
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
gchar ** midgard_workspace_storage_list_workspace_names (MidgardWorkspaceStorage *self
,guint *n_names
);
|
MidgardWorkspaceStorage instance |
|
a pointer to store number of returned names |
Returns : |
array of names. [transfer container][array length=n_names] |
Since 10.05.5