2 * Copyright (C) 2013-2014 Andreas Steffen
3 * HSR Hochschule fuer Technik Rapperswil
5 * This program is free software; you can redistribute it and/or modify it
6 * under the terms of the GNU General Public License as published by the
7 * Free Software Foundation; either version 2 of the License, or (at your
8 * option) any later version. See <http://www.fsf.org/copyleft/gpl.txt>.
10 * This program is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY
12 * or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
17 * @defgroup swid_tag swid_tag
26 typedef struct swid_tag_t swid_tag_t
;
30 * Class storing a SWID Tag
35 * Get UTF-8 XML encoding of SWID tag
37 * @return XML encoding of SWID tag
39 chunk_t (*get_encoding
)(swid_tag_t
*this);
42 * Get the optional Tag Identifier Instance ID
44 * @return Optional Tag Identifier Instance ID
46 chunk_t (*get_instance_id
)(swid_tag_t
*this);
49 * Get a new reference to the swid_tag object
51 * @return this, with an increased refcount
53 swid_tag_t
* (*get_ref
)(swid_tag_t
*this);
56 * Destroys a swid_tag_t object.
58 void (*destroy
)(swid_tag_t
*this);
63 * Creates a swid_tag_t object
65 * @param encoding XML encoding of SWID tag
66 * @param instance_id Tag Identifier Instance ID or empty chunk
68 swid_tag_t
* swid_tag_create(chunk_t encoding
, chunk_t instance_id
);
70 #endif /** SWID_TAG_H_ @}*/