~ubuntu-branches/ubuntu/precise/libgrip/precise

« back to all changes in this revision

Viewing changes to src/griptypebuiltins.c

  • Committer: Bazaar Package Importer
  • Author(s): Chase Douglas
  • Date: 2011-08-09 16:33:26 UTC
  • mfrom: (1.1.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20110809163326-p2ky362j7dbl0d99
Tags: 0.3.0-0ubuntu1
* New upstream release.
  - Add documentation (LP: #744911)
  - Expose device type and attributes

Show diffs side-by-side

added added

removed removed

Lines of Context:
21
21
  return enum_type_id;
22
22
}
23
23
GType
 
24
grip_time_type_get_type(void) {
 
25
  static GType enum_type_id = 0;
 
26
  if (G_UNLIKELY (!enum_type_id))
 
27
    {
 
28
      static const GEnumValue values[] = {
 
29
        { GRIP_TIME_START, "GRIP_TIME_START", "start" },
 
30
        { GRIP_TIME_UPDATE, "GRIP_TIME_UPDATE", "update" },
 
31
        { GRIP_TIME_END, "GRIP_TIME_END", "end" },
 
32
        { 0, NULL, NULL }
 
33
      };
 
34
      enum_type_id = g_enum_register_static (g_intern_static_string ("GripTimeType"), values);
 
35
    }
 
36
  return enum_type_id;
 
37
}
 
38
/* enumerations from "gripinputdevice.h" */
 
39
#include "gripinputdevice.h"
 
40
GType
24
41
grip_device_type_get_type(void) {
25
42
  static GType enum_type_id = 0;
26
43
  if (G_UNLIKELY (!enum_type_id))
35
52
    }
36
53
  return enum_type_id;
37
54
}
38
 
GType
39
 
grip_time_type_get_type(void) {
40
 
  static GType enum_type_id = 0;
41
 
  if (G_UNLIKELY (!enum_type_id))
42
 
    {
43
 
      static const GEnumValue values[] = {
44
 
        { GRIP_TIME_START, "GRIP_TIME_START", "start" },
45
 
        { GRIP_TIME_UPDATE, "GRIP_TIME_UPDATE", "update" },
46
 
        { GRIP_TIME_END, "GRIP_TIME_END", "end" },
47
 
        { 0, NULL, NULL }
48
 
      };
49
 
      enum_type_id = g_enum_register_static (g_intern_static_string ("GripTimeType"), values);
50
 
    }
51
 
  return enum_type_id;
52
 
}
53
55
 
54
56
/* Generated data ends here */
55
57