JcatItem

JcatItem

Functions

JcatItem * jcat_item_new ()
gchar * jcat_item_to_string ()
GPtrArray * jcat_item_get_blobs ()
GPtrArray * jcat_item_get_blobs_by_kind ()
void jcat_item_add_blob ()
const gchar * jcat_item_get_id ()

Types and Values

Description

Functions

jcat_item_new ()

JcatItem *
jcat_item_new (const gchar *id);

Creates a new item.

Parameters

id

An item ID, typically a file basename

 

Returns

a JcatItem

Since: 0.1.0


jcat_item_to_string ()

gchar *
jcat_item_to_string (JcatItem *self);

Converts the JcatItem to a string.

Parameters

self

JcatItem

 

Returns

string

Since: 0.1.0


jcat_item_get_blobs ()

GPtrArray *
jcat_item_get_blobs (JcatItem *self);

Gets all the blobs for this item.

Parameters

self

JcatItem

 

Returns

blobs.

[transfer container][element-type JcatBlob]

Since: 0.1.0


jcat_item_get_blobs_by_kind ()

GPtrArray *
jcat_item_get_blobs_by_kind (JcatItem *self,
                             JcatBlobKind kind);

Gets the item blobs by a specific kind.

Parameters

Returns

blobs.

[transfer container][element-type JcatBlob]

Since: 0.1.0


jcat_item_add_blob ()

void
jcat_item_add_blob (JcatItem *self,
                    JcatBlob *blob);

Adds a new blob to the item.

Parameters

self

JcatItem

 

blob

JcatBlob

 

Since: 0.1.0


jcat_item_get_id ()

const gchar *
jcat_item_get_id (JcatItem *self);

Returns the item ID.

Parameters

self

JcatItem

 

Returns

string.

[transfer none]

Since: 0.1.0

Types and Values

JCAT_TYPE_ITEM

#define JCAT_TYPE_ITEM (jcat_item_get_type ())

struct JcatItemClass

struct JcatItemClass {
	GObjectClass		 parent_class;
	gpointer		 padding[15];
};

JcatItem

typedef struct _JcatItem JcatItem;