/usr/share/gobject-introspection-1.0/tests/drawable.c is in gobject-introspection 1.50.0-1+b1.
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 | /* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*- */
#include "config.h"
#include "drawable.h"
G_DEFINE_ABSTRACT_TYPE (RegressTestInheritDrawable, regress_test_inherit_drawable, G_TYPE_OBJECT);
static void
regress_test_inherit_drawable_class_init (RegressTestInheritDrawableClass *klass)
{
}
static void
regress_test_inherit_drawable_init (RegressTestInheritDrawable *drawable)
{
}
void
regress_test_inherit_drawable_do_foo (RegressTestInheritDrawable *drawable, int x)
{
}
/**
* regress_test_inherit_drawable_get_origin:
* @drawable:
* @x: (out):
* @y: (out):
*/
void
regress_test_inherit_drawable_get_origin (RegressTestInheritDrawable *drawable, int *x, int *y)
{
*x = 0;
*y = 0;
}
/**
* regress_test_inherit_drawable_get_size:
* @drawable:
* @width: (out):
* @height: (out):
*/
void
regress_test_inherit_drawable_get_size (RegressTestInheritDrawable *drawable, guint *width, guint *height)
{
*width = 42;
*height = 42;
}
void
regress_test_inherit_drawable_do_foo_maybe_throw (RegressTestInheritDrawable *drawable, int x, GError **error)
{
if (x != 42)
g_set_error(error, 0, 12, "The answer should be 42!");
}
|