summaryrefslogtreecommitdiff
path: root/libappstream-glib/as-image.c
Commit message (Collapse)AuthorAgeFilesLines
* trivial: Fix up some GObjectIntrospection markupRichard Hughes2014-06-201-1/+1
|
* Allow as_node_get_attribute_as_int() to parse negative numbersRichard Hughes2014-06-131-2/+2
| | | | | | | | | This was failing as the gint64 value was being pushed into a guint64, so negative numbers were being pushed above G_MAXINT and hence an error was being returned. Additionally, return G_MAXINT rather than G_MAXUINT, else we can't actually parse the '-1' value.
* trivial: Use systemd-style cleanup functionsRichard Hughes2014-06-041-5/+5
| | | | There's no point creating yet another format...
* trivial: Use a common style where the _cleanup is done last in the blockRichard Hughes2014-06-031-2/+2
|
* Use __attribute__(cleanup) to simplify memory cleanupRichard Hughes2014-06-011-32/+16
|
* Add as_image_get_basename()Richard Hughes2014-05-161-0/+43
|
* Add as_image_save_pixbuf()Richard Hughes2014-05-161-40/+63
|
* Add as_image_load_filename()Richard Hughes2014-05-141-0/+47
|
* Update the image size when using as_image_set_pixbuf()Richard Hughes2014-05-141-0/+2
|
* Add as_image_get_md5()Richard Hughes2014-05-131-0/+27
| | | | This is not supposed to be a secure hash.
* Add as_image_save_filename()Richard Hughes2014-05-131-0/+87
|
* Add as_image_set_pixbuf()Richard Hughes2014-05-131-0/+38
| | | | This allows us to store image data in the object directly.
* Add an 'api-version' property to AsStore to generate old-style metadataRichard Hughes2014-03-201-1/+2
| | | | | This allows us to keep up with the latest API and still write metadata compatible with old applications not using libappstream-glib or libappstream.
* Add gtk-doc file headers and flesh out the documentationRichard Hughes2014-03-181-0/+13
|
* Unexport things we don't want to keep stableRichard Hughes2014-03-181-3/+3
|
* Add a lot of Gtk-Doc markup and generate a valid GIR fileRichard Hughes2014-03-171-11/+101
|
* trivial: Never use atoi()Richard Hughes2014-03-171-9/+8
|
* Reduce the amount of string copying when parsing a GNode treeRichard Hughes2014-03-171-3/+8
| | | | | | By introducing as_node_take_data() we can take ownership of the string data, and avoid an extra g_strdup/g_free for each tag processed. This speeds up reading the sample data by ~5%.
* Use strndup so we can use expat-type parsers without an additional copyRichard Hughes2014-03-131-5/+3
|
* Add functions to parse from and to insert a GNodeRichard Hughes2014-03-131-0/+57
| | | | | | This allows us to trivially serialize objects to XML and back. NOTE: as this uses a DOM parser, it's certainly not quick. Use something manual like expat or GMarkupParser to do this more efficiently and with less memory.
* Add AsImageRichard Hughes2014-03-121-0/+188