File: generate_extra_defs_atk.cc

package info (click to toggle)
atkmm1.6 2.28.0-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,284 kB
  • sloc: xml: 5,642; sh: 4,197; perl: 236; cpp: 142; makefile: 88
file content (66 lines) | stat: -rw-r--r-- 2,285 bytes parent folder | download | duplicates (2)
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
/* Copyright (c) 2010  Openismus GmbH  <http://www.openismus.com/>
 *
 * This file is part of atkmm.
 *
 * atkmm is free software: you can redistribute it and/or modify it
 * under the terms of the GNU Lesser General Public License as published
 * by the Free Software Foundation, either version 2.1 of the License,
 * or (at your option) any later version.
 *
 * atkmm is distributed in the hope that it will be useful, but
 * WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * See the GNU Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public License
 * along with this program.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifdef HAVE_CONFIG_H
# include <build/config.h>
#endif
// We always need to generate the .defs for all types because the code
// using deprecated API is generated unconditionally and only disabled
// at compile time.
#undef ATK_DISABLE_DEPRECATED

#include <glibmm_generate_extra_defs/generate_extra_defs.h>
#include <atk/atk.h>
#include <iostream>

int main(int, char**)
{
  // g_type_init() is deprecated as of glib-2.36.
  // g_type_init();

  void *const g_class_atk_no_op_object = g_type_class_ref(ATK_TYPE_NO_OP_OBJECT);

G_GNUC_BEGIN_IGNORE_DEPRECATIONS

  std::cout << get_defs(ATK_TYPE_OBJECT)
            << get_defs(ATK_TYPE_COMPONENT)
            << get_defs(ATK_TYPE_ACTION)
            << get_defs(ATK_TYPE_EDITABLE_TEXT)
            << get_defs(ATK_TYPE_HYPERLINK)
            << get_defs(ATK_TYPE_HYPERLINK_IMPL)
            << get_defs(ATK_TYPE_HYPERTEXT)
            << get_defs(ATK_TYPE_IMAGE)
            << get_defs(ATK_TYPE_MISC)
            << get_defs(ATK_TYPE_PLUG)
            << get_defs(ATK_TYPE_SELECTION)
            << get_defs(ATK_TYPE_SOCKET)
            << get_defs(ATK_TYPE_TABLE)
            << get_defs(ATK_TYPE_TEXT)
            << get_defs(ATK_TYPE_VALUE)
            << get_defs(ATK_TYPE_WINDOW)
            << get_defs(ATK_TYPE_REGISTRY)
            << get_defs(ATK_TYPE_RELATION)
            << get_defs(ATK_TYPE_RELATION_SET)
            << get_defs(ATK_TYPE_STATE_SET)
            ;

G_GNUC_END_IGNORE_DEPRECATIONS

  g_type_class_unref(g_class_atk_no_op_object);
  return 0;
}