Top |
ModulemdTranslation * modulemd_translation_new (guint64 version
,const gchar *module_name
,const gchar *module_stream
,guint64 modified
);
version |
The metadata version of this ModulemdTranslation. |
|
module_name |
The name of the module to which these translations apply. |
|
module_stream |
The name of the module stream to which these translations apply. |
|
modified |
The last modified time represented as a 64-bit integer (such as 201807011200) |
Since: 2.0
ModulemdTranslation *
modulemd_translation_copy (ModulemdTranslation *self
);
Create a copy of this ModulemdTranslation object.
Since: 2.0
gboolean modulemd_translation_validate (ModulemdTranslation *self
,GError **error
);
This method ensures that the translation is internally consistent for usage or dumping to YAML. It will be run implicitly prior to emitting YAML. This is not a complete linter, merely a sanity check that the values are not impossible.
self |
This ModulemdTranslation |
|
error |
If the object is not valid, it will return the reason. |
[out] |
Since: 2.0
void modulemd_translation_set_modified (ModulemdTranslation *self
,guint64 modified
);
self |
This ModulemdTranslation |
|
modified |
The last modified time represented as a 64-bit integer (such as 201807011200) |
Since: 2.0
GStrv
modulemd_translation_get_locales_as_strv
(ModulemdTranslation *self
);
[rename-to modulemd_translation_get_locales]
Since: 2.0
void modulemd_translation_set_translation_entry (ModulemdTranslation *self
,ModulemdTranslationEntry *translation_entry
);
self |
This ModulemdTranslation |
|
translation_entry |
A set of translations of this module stream for a particular locale. |
Since: 2.0
ModulemdTranslationEntry * modulemd_translation_get_translation_entry (ModulemdTranslation *self
,const gchar *locale
);
Since: 2.0