~ubuntu-branches/debian/sid/glib2.0/sid

« back to all changes in this revision

Viewing changes to glib/gbytes.h

  • Committer: Package Import Robot
  • Author(s): Martin Pitt
  • Date: 2013-05-08 06:25:57 UTC
  • mfrom: (1.27.14) (3.1.181 experimental)
  • Revision ID: package-import@ubuntu.com-20130508062557-i7gbku66mls70gi2
Tags: 2.36.1-2
Merge experimental branch, upload to unstable.

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
 *         Stef Walter <stefw@collabora.co.uk>
22
22
 */
23
23
 
 
24
#ifndef __G_BYTES_H__
 
25
#define __G_BYTES_H__
 
26
 
24
27
#if !defined (__GLIB_H_INSIDE__) && !defined (GLIB_COMPILATION)
25
28
#error "Only <glib.h> can be included directly."
26
29
#endif
27
30
 
28
 
#ifndef __G_BYTES_H__
29
 
#define __G_BYTES_H__
30
 
 
31
31
#include <glib/gtypes.h>
32
32
#include <glib/garray.h>
33
33
 
34
34
G_BEGIN_DECLS
35
35
 
 
36
GLIB_AVAILABLE_IN_ALL
36
37
GBytes *        g_bytes_new                     (gconstpointer   data,
37
38
                                                 gsize           size);
38
39
 
 
40
GLIB_AVAILABLE_IN_ALL
39
41
GBytes *        g_bytes_new_take                (gpointer        data,
40
42
                                                 gsize           size);
41
43
 
 
44
GLIB_AVAILABLE_IN_ALL
42
45
GBytes *        g_bytes_new_static              (gconstpointer   data,
43
46
                                                 gsize           size);
44
47
 
 
48
GLIB_AVAILABLE_IN_ALL
45
49
GBytes *        g_bytes_new_with_free_func      (gconstpointer   data,
46
50
                                                 gsize           size,
47
51
                                                 GDestroyNotify  free_func,
48
52
                                                 gpointer        user_data);
49
53
 
 
54
GLIB_AVAILABLE_IN_ALL
50
55
GBytes *        g_bytes_new_from_bytes          (GBytes         *bytes,
51
56
                                                 gsize           offset,
52
57
                                                 gsize           length);
53
58
 
 
59
GLIB_AVAILABLE_IN_ALL
54
60
gconstpointer   g_bytes_get_data                (GBytes         *bytes,
55
61
                                                 gsize          *size);
56
62
 
 
63
GLIB_AVAILABLE_IN_ALL
57
64
gsize           g_bytes_get_size                (GBytes         *bytes);
58
65
 
 
66
GLIB_AVAILABLE_IN_ALL
59
67
GBytes *        g_bytes_ref                     (GBytes         *bytes);
60
68
 
 
69
GLIB_AVAILABLE_IN_ALL
61
70
void            g_bytes_unref                   (GBytes         *bytes);
62
71
 
 
72
GLIB_AVAILABLE_IN_ALL
63
73
gpointer        g_bytes_unref_to_data           (GBytes         *bytes,
64
74
                                                 gsize          *size);
65
75
 
 
76
GLIB_AVAILABLE_IN_ALL
66
77
GByteArray *    g_bytes_unref_to_array          (GBytes         *bytes);
67
78
 
 
79
GLIB_AVAILABLE_IN_ALL
68
80
guint           g_bytes_hash                    (gconstpointer   bytes);
69
81
 
 
82
GLIB_AVAILABLE_IN_ALL
70
83
gboolean        g_bytes_equal                   (gconstpointer   bytes1,
71
84
                                                 gconstpointer   bytes2);
72
85
 
 
86
GLIB_AVAILABLE_IN_ALL
73
87
gint            g_bytes_compare                 (gconstpointer   bytes1,
74
88
                                                 gconstpointer   bytes2);
75
89