2 #include <glib-object.h>
3 #include "exportable.h"
5 GType upkg_exportable_get_type(void)
9 static const GTypeInfo info = {
10 sizeof (UPkgExportable),
15 type = g_type_register_static(G_TYPE_INTERFACE,
16 "UPkgExportable", &info, 0);
21 int upkg_export(GObject *obj, FILE *f)
23 g_return_val_if_fail(UPKG_IS_EXPORTABLE(obj), -1);
24 return UPKG_EXPORTABLE_GET_INTERFACE(obj)->export(obj, f);
27 int upkg_export_name(GObject *obj, char *buf, size_t n)
29 g_return_val_if_fail(UPKG_IS_EXPORTABLE(obj), -1);
30 return UPKG_EXPORTABLE_GET_INTERFACE(obj)->export_name(obj, buf, n);