![]() |
![]() |
![]() |
OSTree API references | ![]() |
---|---|---|---|---|
Top | Description |
OstreeDeployment; guint ostree_deployment_hash (gconstpointer v
); gboolean ostree_deployment_equal (gconstpointer ap
,gconstpointer bp
); OstreeDeployment * ostree_deployment_new (int index
,const char *osname
,const char *csum
,int deployserial
,const char *bootcsum
,int bootserial
); int ostree_deployment_get_index (OstreeDeployment *self
); const char * ostree_deployment_get_osname (OstreeDeployment *self
); int ostree_deployment_get_deployserial (OstreeDeployment *self
); const char * ostree_deployment_get_csum (OstreeDeployment *self
); const char * ostree_deployment_get_bootcsum (OstreeDeployment *self
); int ostree_deployment_get_bootserial (OstreeDeployment *self
); OstreeBootconfigParser * ostree_deployment_get_bootconfig (OstreeDeployment *self
); GKeyFile * ostree_deployment_get_origin (OstreeDeployment *self
); void ostree_deployment_set_index (OstreeDeployment *self
,int index
); void ostree_deployment_set_bootserial (OstreeDeployment *self
,int index
); void ostree_deployment_set_bootconfig (OstreeDeployment *self
,OstreeBootconfigParser *bootconfig
); void ostree_deployment_set_origin (OstreeDeployment *self
,GKeyFile *origin
); OstreeDeployment * ostree_deployment_clone (OstreeDeployment *self
);
typedef struct { GObject parent_instance; int index; /* Global offset */ char *osname; /* osname */ char *csum; /* OSTree checksum of tree */ int deployserial; /* How many times this particular csum appears in deployment list */ char *bootcsum; /* Checksum of kernel+initramfs */ int bootserial; /* An integer assigned to this tree per its ${bootcsum} */ OstreeBootconfigParser *bootconfig; /* Bootloader configuration */ GKeyFile *origin; /* How to construct an upgraded version of this tree */ OstreeDeploymentUnlockedState unlocked; /* The unlocked state */ } OstreeDeployment;
OstreeDeployment * ostree_deployment_new (int index
,const char *osname
,const char *csum
,int deployserial
,const char *bootcsum
,int bootserial
);
int ostree_deployment_get_deployserial (OstreeDeployment *self
);
const char * ostree_deployment_get_bootcsum (OstreeDeployment *self
);
OstreeBootconfigParser * ostree_deployment_get_bootconfig
(OstreeDeployment *self
);
|
Deployment |
Returns : |
Boot configuration. [transfer none] |
GKeyFile * ostree_deployment_get_origin (OstreeDeployment *self
);
|
Deployment |
Returns : |
Origin. [transfer none] |
void ostree_deployment_set_index (OstreeDeployment *self
,int index
);
void ostree_deployment_set_bootserial (OstreeDeployment *self
,int index
);
void ostree_deployment_set_bootconfig (OstreeDeployment *self
,OstreeBootconfigParser *bootconfig
);
void ostree_deployment_set_origin (OstreeDeployment *self
,GKeyFile *origin
);
OstreeDeployment * ostree_deployment_clone (OstreeDeployment *self
);
|
Deployment |
Returns : |
New deep copy of self . [transfer full]
|