File: gcab-enums.c

package info (click to toggle)
gcab 0.7-2~bpo8%2B1
  • links: PTS, VCS
  • area: main
  • in suites: jessie-backports
  • size: 2,512 kB
  • sloc: sh: 5,923; ansic: 3,122; makefile: 232
file content (76 lines) | stat: -rw-r--r-- 2,696 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
67
68
69
70
71
72
73
74
75
76

/* Generated data (by glib-mkenums) */

/*
 * Copyright (C) 2012 Marc-André Lureau <marcandre.lureau@redhat.com>
 *
 * This library 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 of the License, or (at your option) any later version.
 *
 * This library 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 library. If not, see <http://www.gnu.org/licenses/>.
 */

#include "gcab-enums.h"

#include "libgcab/gcab-folder.h"

GType
gcab_compression_get_type (void)
{
  static volatile gsize g_define_type_id__volatile = 0;

  if (g_once_init_enter (&g_define_type_id__volatile))
    {
      static const GEnumValue values[] = {
        { GCAB_COMPRESSION_NONE, "GCAB_COMPRESSION_NONE", "none" },
        { GCAB_COMPRESSION_MSZIP, "GCAB_COMPRESSION_MSZIP", "mszip" },
        { GCAB_COMPRESSION_QUANTUM, "GCAB_COMPRESSION_QUANTUM", "quantum" },
        { GCAB_COMPRESSION_LZX, "GCAB_COMPRESSION_LZX", "lzx" },
        { GCAB_COMPRESSION_MASK, "GCAB_COMPRESSION_MASK", "mask" },
        { 0, NULL, NULL }
      };
      GType g_define_type_id =
        g_enum_register_static (g_intern_static_string ("GCabCompression"), values);
      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
    }

  return g_define_type_id__volatile;
}

#include "libgcab/gcab-file.h"

GType
gcab_file_attribute_get_type (void)
{
  static volatile gsize g_define_type_id__volatile = 0;

  if (g_once_init_enter (&g_define_type_id__volatile))
    {
      static const GEnumValue values[] = {
        { GCAB_FILE_ATTRIBUTE_RDONLY, "GCAB_FILE_ATTRIBUTE_RDONLY", "rdonly" },
        { GCAB_FILE_ATTRIBUTE_HIDDEN, "GCAB_FILE_ATTRIBUTE_HIDDEN", "hidden" },
        { GCAB_FILE_ATTRIBUTE_SYSTEM, "GCAB_FILE_ATTRIBUTE_SYSTEM", "system" },
        { GCAB_FILE_ATTRIBUTE_ARCH, "GCAB_FILE_ATTRIBUTE_ARCH", "arch" },
        { GCAB_FILE_ATTRIBUTE_EXEC, "GCAB_FILE_ATTRIBUTE_EXEC", "exec" },
        { GCAB_FILE_ATTRIBUTE_NAME_IS_UTF, "GCAB_FILE_ATTRIBUTE_NAME_IS_UTF", "name-is-utf" },
        { 0, NULL, NULL }
      };
      GType g_define_type_id =
        g_enum_register_static (g_intern_static_string ("GCabFileAttribute"), values);
      g_once_init_leave (&g_define_type_id__volatile, g_define_type_id);
    }

  return g_define_type_id__volatile;
}


/* Generated data ends here */