/usr/include/gexiv2/gexiv2-preview-image.h is in libgexiv2-dev 0.10.8-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 | /*
* gexiv2-preview-image.h
*
* Author(s)
* Jim Nelson <jim@yorba.org>
*
* This is free software. See COPYING for details.
*/
#ifndef GEXIV2_PREVIEW_IMAGE_H
#define GEXIV2_PREVIEW_IMAGE_H
#include <glib-object.h>
#include <gio/gio.h>
G_BEGIN_DECLS
#define GEXIV2_TYPE_PREVIEW_IMAGE \
(gexiv2_preview_image_get_type ())
#define GEXIV2_PREVIEW_IMAGE(obj) \
(G_TYPE_CHECK_INSTANCE_CAST ((obj), GEXIV2_TYPE_PREVIEW_IMAGE, GExiv2PreviewImage))
#define GEXIV2_IS_PREVIEW_IMAGE(obj) \
(G_TYPE_CHECK_INSTANCE_TYPE ((obj), GEXIV2_TYPE_PREVIEW_IMAGE))
#define GEXIV2_PREVIEW_IMAGE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_CAST ((klass), GEXIV2_TYPE_PREVIEW_IMAGE, GExiv2PreviewImageClass))
#define GEXIV2_IS_PREVIEW_IMAGE_CLASS(klass) \
(G_TYPE_CHECK_CLASS_TYPE ((klass), GEXIV2_TYPE_PREVIEW_IMAGE))
#define GEXIV2_PREVIEW_IMAGE_GET_CLASS(obj) \
(G_TYPE_INSTANCE_GET_CLASS ((obj), GEXIV2_TYPE_PREVIEW_IMAGE, GExiv2PreviewImageClass))
typedef struct _GExiv2PreviewImage GExiv2PreviewImage;
typedef struct _GExiv2PreviewImageClass GExiv2PreviewImageClass;
typedef struct _GExiv2PreviewImagePrivate GExiv2PreviewImagePrivate;
G_DEFINE_AUTOPTR_CLEANUP_FUNC(GExiv2PreviewImage, g_object_unref)
struct _GExiv2PreviewImage
{
GObject parent_instance;
/*< private >*/
GExiv2PreviewImagePrivate *priv;
};
struct _GExiv2PreviewImageClass
{
GObjectClass parent_class;
};
/* basic functions */
GType gexiv2_preview_image_get_type (void);
/**
* gexiv2_preview_image_free:
* @self: An instance of #GExiv2PreviewImage
*
* Releases the preview image and all associated memory.
*
* Deprecated: 0.10.3: Use g_object_unref() instead.
*/
G_DEPRECATED_FOR(g_object_unref)
void gexiv2_preview_image_free (GExiv2PreviewImage *self);
/* preview image properties */
/**
* gexiv2_preview_image_get_data:
* @self: An instance of #GExiv2PreviewImage
* @size: (out) (skip): The size of the buffer holding the data
*
* Returns: (transfer none) (array length=size): The raw image data
*/
const guint8* gexiv2_preview_image_get_data (GExiv2PreviewImage *self, guint32 *size);
/**
* gexiv2_preview_image_get_mime_type:
* @self: An instance of #GExiv2PreviewImage
*
* Returns: (transfer none): The preview image's MIME type.
*/
const gchar* gexiv2_preview_image_get_mime_type (GExiv2PreviewImage *self);
/**
* gexiv2_preview_image_get_extension:
* @self: An instance of #GExiv2PreviewImage
*
* Returns: (transfer none): The preview image's recommended file extension.
*/
const gchar* gexiv2_preview_image_get_extension (GExiv2PreviewImage *self);
/**
* gexiv2_preview_image_get_width:
* @self: An instance of #GExiv2PreviewImage
*
* Returns: The preview image's display width in pixels.
*/
guint32 gexiv2_preview_image_get_width (GExiv2PreviewImage *self);
/**
* gexiv2_preview_image_get_height:
* @self: An instance of #GExiv2PreviewImage
*
* Returns: The preview image's display height in pixels.
*/
guint32 gexiv2_preview_image_get_height (GExiv2PreviewImage *self);
/**
* gexiv2_preview_image_write_file:
* @self: An instance of #GExiv2PreviewImage
* @path: (in): The file path to write the preview image to.
*
* Returns: The number of bytes written to the file.
*/
glong gexiv2_preview_image_write_file (GExiv2PreviewImage *self, const gchar *path);
G_END_DECLS
#endif /* GEXIV2_PREVIEW_IMAGE_H */
|