Commit 70c5fa5f authored by Evan Nemerson's avatar Evan Nemerson

vapi: Add missing has_type_id = false in non-GObject bindings.

parent f60169c8
......@@ -29,7 +29,7 @@ namespace Avahi {
/* Network addresses */
[SimpleType]
[CCode(cheader_filename="avahi-common/address.h", cname="AvahiProtocol", cprefix="AVAHI_PROTO_", lower_case_cprefix="avahi_proto_")]
[CCode(cheader_filename="avahi-common/address.h", cname="AvahiProtocol", cprefix="AVAHI_PROTO_", lower_case_cprefix="avahi_proto_", has_type_id = false)]
public enum Protocol {
INET,
INET6,
......@@ -46,7 +46,7 @@ namespace Avahi {
}
[SimpleType]
[CCode(cheader_filename="avahi-common/address.h", cname="AvahiIfIndex")]
[CCode(cheader_filename="avahi-common/address.h", cname="AvahiIfIndex", has_type_id = false)]
public struct Interface {
[CCode(cname="AVAHI_IF_UNSPEC")]
public static Interface UNSPEC;
......@@ -55,7 +55,7 @@ namespace Avahi {
public bool is_valid();
}
[CCode(cheader_filename="avahi-common/address.h", cname="AvahiAddress", cprefix="avahi_address_")]
[CCode(cheader_filename="avahi-common/address.h", cname="AvahiAddress", cprefix="avahi_address_", has_type_id = false)]
public struct Address {
public Protocol proto;
......@@ -253,7 +253,7 @@ namespace Avahi {
/* Entry group */
[Flags]
[CCode(cheader_filename="avahi-common/defs.h", cname="AvahiPublishFlags", cfrefix="AVAHI_PUBLISH_")]
[CCode(cheader_filename="avahi-common/defs.h", cname="AvahiPublishFlags", cfrefix="AVAHI_PUBLISH_", has_type_id = false)]
public enum PublishFlags {
UNIQUE,
NO_PROBE,
......
......@@ -22,14 +22,14 @@
[CCode (cheader_filename = "bzlib.h")]
namespace BZLib {
[CCode (cname = "int", cprefix = "BZ_")]
[CCode (cname = "int", cprefix = "BZ_", has_type_id = false)]
public enum Action {
RUN,
FLUSH,
FINISH
}
[CCode (cname = "int", cprefix = "BZ_")]
[CCode (cname = "int", cprefix = "BZ_", has_type_id = false)]
public enum Status {
OK,
RUN_OK,
......@@ -46,7 +46,7 @@ namespace BZLib {
CONFIG_ERROR
}
[CCode (cname = "bz_stream")]
[CCode (cname = "bz_stream", has_type_id = false)]
public struct Stream {
public string next_in;
public uint avail_in;
......
......@@ -164,7 +164,7 @@ namespace Cairo {
public uint get_reference_count ();
}
[CCode (cname = "cairo_antialias_t")]
[CCode (cname = "cairo_antialias_t", has_type_id = false)]
public enum Antialias {
DEFAULT,
NONE,
......@@ -172,27 +172,27 @@ namespace Cairo {
SUBPIXEL
}
[CCode (cname = "cairo_fill_rule_t")]
[CCode (cname = "cairo_fill_rule_t", has_type_id = false)]
public enum FillRule {
WINDING,
EVEN_ODD
}
[CCode (cname = "cairo_line_cap_t")]
[CCode (cname = "cairo_line_cap_t", has_type_id = false)]
public enum LineCap {
BUTT,
ROUND,
SQUARE
}
[CCode (cname = "cairo_line_join_t")]
[CCode (cname = "cairo_line_join_t", has_type_id = false)]
public enum LineJoin {
MITER,
ROUND,
BEVEL
}
[CCode (cname = "cairo_operator_t")]
[CCode (cname = "cairo_operator_t", has_type_id = false)]
public enum Operator {
CLEAR,
SOURCE,
......@@ -234,23 +234,25 @@ namespace Cairo {
public int num_data;
}
[CCode (cname = "cairo_path_data_t")]
[CCode (cname = "cairo_path_data_t", has_type_id = false)]
public struct PathData {
public PathDataHeader header;
public PathDataPoint point;
}
[CCode (cname = "struct { cairo_path_data_type_t type; int length; }", has_type_id = false)]
public struct PathDataHeader {
public PathDataType type;
public int length;
}
[CCode (cname = "struct { double x, y; }", has_type_id = false)]
public struct PathDataPoint {
public double x;
public double y;
}
[CCode (cprefix = "CAIRO_PATH_", cname = "cairo_path_data_type_t")]
[CCode (cprefix = "CAIRO_PATH_", cname = "cairo_path_data_type_t", has_type_id = false)]
public enum PathDataType {
MOVE_TO,
LINE_TO,
......@@ -342,7 +344,7 @@ namespace Cairo {
public RasterSourceFinishFunc get_finish ();
}
[CCode (cname = "cairo_extend_t")]
[CCode (cname = "cairo_extend_t", has_type_id = false)]
public enum Extend {
NONE,
REPEAT,
......@@ -350,7 +352,7 @@ namespace Cairo {
PAD
}
[CCode (cname = "cairo_filter_t")]
[CCode (cname = "cairo_filter_t", has_type_id = false)]
public enum Filter {
FAST,
GOOD,
......@@ -360,7 +362,7 @@ namespace Cairo {
GAUSSIAN
}
[CCode (cname = "cairo_pattern_type_t")]
[CCode (cname = "cairo_pattern_type_t", has_type_id = false)]
public enum PatternType {
SOLID,
SURFACE,
......@@ -397,28 +399,28 @@ namespace Cairo {
public Status xor_rectangle (RectangleInt rectangle);
}
[CCode (cname = "cairo_region_overlap_t")]
[CCode (cname = "cairo_region_overlap_t", has_type_id = false)]
public enum RegionOverlap {
IN,
OUT,
PART
}
[CCode (cname = "cairo_glyph_t")]
[CCode (cname = "cairo_glyph_t", has_type_id = false)]
public struct Glyph {
ulong index;
double x;
double y;
}
[CCode (cname = "cairo_font_slant_t")]
[CCode (cname = "cairo_font_slant_t", has_type_id = false)]
public enum FontSlant {
NORMAL,
ITALIC,
OBLIQUE
}
[CCode (cname = "cairo_font_weight_t")]
[CCode (cname = "cairo_font_weight_t", has_type_id = false)]
public enum FontWeight {
NORMAL,
BOLD
......@@ -467,7 +469,7 @@ namespace Cairo {
public UserScaledFontUnicodeToGlyphFunc get_unicode_to_glyph_func ();
}
[CCode (cname = "cairo_font_type_t")]
[CCode (cname = "cairo_font_type_t", has_type_id = false)]
public enum FontType {
TOY,
FT,
......@@ -506,7 +508,7 @@ namespace Cairo {
public class UserScaledFont {
}
[CCode (cname = "cairo_font_extents_t")]
[CCode (cname = "cairo_font_extents_t", has_type_id = false)]
public struct FontExtents {
public double ascent;
public double descent;
......@@ -515,18 +517,18 @@ namespace Cairo {
public double max_y_advance;
}
[CCode (cname = "cairo_text_cluster_t")]
[CCode (cname = "cairo_text_cluster_t", has_type_id = false)]
public struct TextCluster {
public int num_bytes;
public int num_glyphs;
}
[CCode (cname = "cairo_text_cluster_flags_t", cprefix = "CAIRO_TEXT_CLUSTER_FLAG_")]
[CCode (cname = "cairo_text_cluster_flags_t", cprefix = "CAIRO_TEXT_CLUSTER_FLAG_", has_type_id = false)]
public enum TextClusterFlags {
BACKWARD
}
[CCode (cname = "cairo_text_extents_t")]
[CCode (cname = "cairo_text_extents_t", has_type_id = false)]
public struct TextExtents {
public double x_bearing;
public double y_bearing;
......@@ -555,7 +557,7 @@ namespace Cairo {
public HintMetrics get_hint_metrics ();
}
[CCode (cname = "cairo_subpixel_order_t")]
[CCode (cname = "cairo_subpixel_order_t", has_type_id = false)]
public enum SubpixelOrder {
DEFAULT,
RGB,
......@@ -564,7 +566,7 @@ namespace Cairo {
VBGR
}
[CCode (cname = "cairo_hint_style_t")]
[CCode (cname = "cairo_hint_style_t", has_type_id = false)]
public enum HintStyle {
DEFAULT,
NONE,
......@@ -573,14 +575,14 @@ namespace Cairo {
FULL
}
[CCode (cname = "cairo_hint_metrics_t")]
[CCode (cname = "cairo_hint_metrics_t", has_type_id = false)]
public enum HintMetrics {
DEFAULT,
OFF,
ON
}
[CCode (cname = "cairo_device_type_t")]
[CCode (cname = "cairo_device_type_t", has_type_id = false)]
public enum DeviceType {
DRM,
GL,
......@@ -655,14 +657,14 @@ namespace Cairo {
public Surface? win32_get_image ();
}
[CCode (cname = "cairo_content_t")]
[CCode (cname = "cairo_content_t", has_type_id = false)]
public enum Content {
COLOR,
ALPHA,
COLOR_ALPHA
}
[CCode (cname = "cairo_surface_type_t")]
[CCode (cname = "cairo_surface_type_t", has_type_id = false)]
public enum SurfaceType {
IMAGE,
PDF,
......@@ -677,7 +679,7 @@ namespace Cairo {
SVG
}
[CCode (cname = "cairo_format_t")]
[CCode (cname = "cairo_format_t", has_type_id = false)]
public enum Format {
ARGB32,
RGB24,
......@@ -769,7 +771,7 @@ namespace Cairo {
public void restrict_to_version (SvgVersion version);
}
[CCode (cname = "cairo_svg_version_t", cprefix = "CAIRO_SVG_")]
[CCode (cname = "cairo_svg_version_t", cprefix = "CAIRO_SVG_", has_type_id = false)]
public enum SvgVersion {
VERSION_1_1,
VERSION_1_2;
......@@ -779,7 +781,7 @@ namespace Cairo {
public static void get_versions (out unowned SvgVersion[] versions);
}
[CCode (cname = "cairo_pdf_version_t", cprefix = "CAIRO_PDF_")]
[CCode (cname = "cairo_pdf_version_t", cprefix = "CAIRO_PDF_", has_type_id = false)]
public enum PdfVersion {
VERSION_1_4,
VERSION_1_5;
......@@ -789,7 +791,7 @@ namespace Cairo {
public static void get_versions (out unowned PdfVersion[] versions);
}
[CCode (cname = "cairo_ps_level_t", cprefix = "CAIRO_PS_")]
[CCode (cname = "cairo_ps_level_t", cprefix = "CAIRO_PS_", has_type_id = false)]
public enum PsLevel {
LEVEL_2,
LEVEL_3;
......@@ -864,7 +866,7 @@ namespace Cairo {
public Rectangle[] rectangles;
}
[CCode (cname = "cairo_status_t")]
[CCode (cname = "cairo_status_t", has_type_id = false)]
public enum Status {
SUCCESS,
NO_MEMORY,
......
......@@ -44,6 +44,7 @@ namespace Curses {
public const Curses.Color WHITE;
}
[CCode (has_type_id = false)]
public enum Acs {
ULCORNER, LLCORNER, URCORNER, LRCORNER, LTEE, RTEE,
BTEE, TTEE, HLINE, VLINE, PLUS, S1, S9, DIAMOND,
......@@ -433,13 +434,14 @@ namespace Curses {
public int vidputs(ulong attrs, VidputsPutcFunc putc);
public int vline(ulong ch, int n);
[CCode (cprefix = "A_")]
[CCode (cprefix = "A_", has_type_id = false)]
public enum Attribute {
NORMAL, ATTRIBUTES, CHARTEXT, COLOR, STANDOUT,
UNDERLINE, REVERSE, BLINK, DIM, BOLD, ALTCHARSET, INVIS,
PROTECT, HORIZONTAL, LEFT, LOW, RIGHT, TOP, VERTICAL
}
[CCode (has_type_id = false)]
public enum Key {
CODE_YES, MIN, BREAK, SRESET, RESET, DOWN, UP, LEFT,
RIGHT, HOME, BACKSPACE, F0, /* XXX F(n), */ DL, IL, DC,
......@@ -457,7 +459,7 @@ namespace Curses {
}
/* TODO: mouse + wide char support */
[CCode (cname="MEVENT")]
[CCode (cname="MEVENT", has_type_id = false)]
public struct MouseEvent {
short id;
int x;
......@@ -466,18 +468,20 @@ namespace Curses {
long bstate;
}
[CCode (cprefix="")]
[CCode (cprefix="", has_type_id = false)]
public enum MouseMask {
ALL_MOUSE_EVENTS,
REPORT_MOUSE_POSITION
}
[CCode (has_type_id = false)]
public enum Button {
SHIFT,
CTRL,
ALT,
}
[CCode (has_type_id = false)]
public enum Button1 {
PRESSED,
RELEASED,
......@@ -486,6 +490,7 @@ namespace Curses {
TRIPLE_CLICKED
}
[CCode (has_type_id = false)]
public enum Button2 {
PRESSED,
RELEASED,
......@@ -494,6 +499,7 @@ namespace Curses {
TRIPLE_CLICKED
}
[CCode (has_type_id = false)]
public enum Button3 {
PRESSED,
RELEASED,
......@@ -502,6 +508,7 @@ namespace Curses {
TRIPLE_CLICKED
}
[CCode (has_type_id = false)]
public enum Button4 {
PRESSED,
RELEASED,
......@@ -510,6 +517,7 @@ namespace Curses {
TRIPLE_CLICKED
}
[CCode (has_type_id = false)]
public enum Button5 {
PRESSED,
RELEASED,
......
......@@ -22,7 +22,7 @@
[CCode (cprefix = "fuse_", cheader_filename = "fuse/fuse.h")]
namespace Fuse {
[CCode (cname = "struct fuse_file_info")]
[CCode (cname = "struct fuse_file_info", has_type_id = false)]
public struct FileInfo {
public int flags;
public ulong fh_old;
......@@ -35,11 +35,11 @@ namespace Fuse {
public uint64 lock_owner;
}
[CCode (cname = "struct fuse")]
[CCode (cname = "struct fuse", has_type_id = false)]
public struct Fuse {
}
[CCode (cname = "struct fuse_context")]
[CCode (cname = "struct fuse_context", has_type_id = false)]
public struct Context {
Fuse fuse;
Posix.uid_t uid;
......@@ -105,7 +105,7 @@ namespace Fuse {
[CCode (has_target = false)]
public delegate int RemoveXAttr (string path, string name);
[CCode (cname = "struct fuse_operations")]
[CCode (cname = "struct fuse_operations", has_type_id = false)]
public struct Operations {
public GetAttr getattr;
public Access access;
......
......@@ -41,7 +41,7 @@ namespace GnuTLS
public unowned string? check_version (string? req_version);
[CCode (cname = "gnutls_cipher_algorithm_t", cprefix = "GNUTLS_CIPHER_")]
[CCode (cname = "gnutls_cipher_algorithm_t", cprefix = "GNUTLS_CIPHER_", has_type_id = false)]
public enum CipherAlgorithm {
UNKNOWN,
NULL,
......@@ -70,7 +70,7 @@ namespace GnuTLS
public static unowned CipherAlgorithm[] list ();
}
[CCode (cname = "gnutls_kx_algorithm_t", cprefix = "GNUTLS_KX_")]
[CCode (cname = "gnutls_kx_algorithm_t", cprefix = "GNUTLS_KX_", has_type_id = false)]
public enum KXAlgorithm {
UNKNOWN,
RSA,
......@@ -92,7 +92,7 @@ namespace GnuTLS
public static unowned KXAlgorithm[] list ();
}
[CCode (cname = "gnutls_mac_algorithm_t", cprefix = "GNUTLS_MAC_")]
[CCode (cname = "gnutls_mac_algorithm_t", cprefix = "GNUTLS_MAC_", has_type_id = false)]
public enum MacAlgorithm {
UNKNOWN,
NULL,
......@@ -114,7 +114,7 @@ namespace GnuTLS
public static unowned MacAlgorithm[] list ();
}
[CCode (cname = "gnutls_digest_algorithm_t", cprefix = "GNUTLS_DIG_")]
[CCode (cname = "gnutls_digest_algorithm_t", cprefix = "GNUTLS_DIG_", has_type_id = false)]
public enum DigestAlgorithm {
NULL,
MD5,
......@@ -133,7 +133,7 @@ namespace GnuTLS
[CCode (cname = "GNUTLS_MAX_ALGORITHM_NUM")]
public const int MAX_ALGORITHM_NUM;
[CCode (cname = "gnutls_pk_algorithm_t", cprefix = "GNUTLS_PK_")]
[CCode (cname = "gnutls_pk_algorithm_t", cprefix = "GNUTLS_PK_", has_type_id = false)]
public enum PKAlgorithm {
UNKNOWN,
RSA,
......@@ -143,7 +143,7 @@ namespace GnuTLS
public unowned string? get_name ();
}
[CCode (cname = "gnutls_sign_algorithm_t", cprefix = "GNUTLS_SIGN_")]
[CCode (cname = "gnutls_sign_algorithm_t", cprefix = "GNUTLS_SIGN_", has_type_id = false)]
public enum SignAlgorithm {
UNKNOWN,
RSA_SHA1,
......@@ -160,7 +160,7 @@ namespace GnuTLS
public unowned string? get_name ();
}
[CCode (cname = "gnutls_compression_method_t", cprefix = "GNUTLS_COMP_")]
[CCode (cname = "gnutls_compression_method_t", cprefix = "GNUTLS_COMP_", has_type_id = false)]
public enum CompressionMethod {
UNKNOWN,
NULL,
......@@ -176,13 +176,13 @@ namespace GnuTLS
public static unowned CompressionMethod[] list ();
}
[CCode (cname = "gnutls_params_type_t", cprefix = "GNUTLS_PARAMS_")]
[CCode (cname = "gnutls_params_type_t", cprefix = "GNUTLS_PARAMS_", has_type_id = false)]
public enum ParamsType {
RSA_EXPORT,
DH
}
[CCode (cname = "gnutls_credentials_type_t", cprefix = "GNUTLS_CRD_")]
[CCode (cname = "gnutls_credentials_type_t", cprefix = "GNUTLS_CRD_", has_type_id = false)]
public enum CredentialsType {
CERTIFICATE,
ANON,
......@@ -191,13 +191,13 @@ namespace GnuTLS
IA
}
[CCode (cname = "gnutls_alert_level_t", cprefix = "GNUTLS_AL_")]
[CCode (cname = "gnutls_alert_level_t", cprefix = "GNUTLS_AL_", has_type_id = false)]
public enum AlertLevel {
WARNING,
FATAL
}
[CCode (cname = "gnutls_alert_description_t", cprefix = "GNUTLS_A_")]
[CCode (cname = "gnutls_alert_description_t", cprefix = "GNUTLS_A_", has_type_id = false)]
public enum AlertDescription {
CLOSE_NOTIFY,
UNEXPECTED_MESSAGE,
......@@ -234,7 +234,7 @@ namespace GnuTLS
public unowned string? get_name ();
}
[CCode (cname = "gnutls_handshake_description_t", cprefix = "GNUTLS_HANDSHAKE_")]
[CCode (cname = "gnutls_handshake_description_t", cprefix = "GNUTLS_HANDSHAKE_", has_type_id = false)]
public enum HandshakeDescription {
HELLO_REQUEST,
CLIENT_HELLO,
......@@ -253,7 +253,7 @@ namespace GnuTLS
* in openpgp keys and x.509 certificate verification.
*/
[Flags]
[CCode (cname = "gnutls_certificate_status_t", cprefix = "GNUTLS_CERT_")]
[CCode (cname = "gnutls_certificate_status_t", cprefix = "GNUTLS_CERT_", has_type_id = false)]
public enum CertificateStatus {
INVALID, // will be set if the certificate was not verified.
REVOKED, // in X.509 this will be set only if CRLs are checked
......@@ -262,32 +262,32 @@ namespace GnuTLS
INSECURE_ALGORITHM
}
[CCode (cname = "gnutls_certificate_request_t", cprefix = "GNUTLS_CERT_")]
[CCode (cname = "gnutls_certificate_request_t", cprefix = "GNUTLS_CERT_", has_type_id = false)]
public enum CertificateRequest {
IGNORE,
REQUEST,
REQUIRE
}
// [CCode (cname = "gnutls_openpgp_crt_status_t", cprefix = "GNUTLS_OPENPGP_")]
// [CCode (cname = "gnutls_openpgp_crt_status_t", cprefix = "GNUTLS_OPENPGP_", has_type_id = false)]
// public enum OpenPGP.CertificateStatus {
// CERT,
// CERT_FINGERPRINT
// }
//
// [CCode (cname = "gnutls_connection_end_t", cprefix = "GNUTLS_")]
// [CCode (cname = "gnutls_connection_end_t", cprefix = "GNUTLS_", has_type_id = false)]
// public enum ConnectionEnd {
// SERVER,
// CLIENT
// }
[CCode (cname = "gnutls_close_request_t", cprefix = "GNUTLS_SHUT_")]
[CCode (cname = "gnutls_close_request_t", cprefix = "GNUTLS_SHUT_", has_type_id = false)]
public enum CloseRequest {
RDWR,
WR
}
[CCode (cname = "gnutls_protocol_t", cprefix = "GNUTLS_")]
[CCode (cname = "gnutls_protocol_t", cprefix = "GNUTLS_", has_type_id = false)]
public enum Protocol {
SSL3,
TLS1, // == TLS1_0
......@@ -305,7 +305,7 @@ namespace GnuTLS
public static unowned Protocol[] list ();
}
[CCode (cname = "gnutls_certificate_type_t", cprefix = "GNUTLS_CRT_")]
[CCode (cname = "gnutls_certificate_type_t", cprefix = "GNUTLS_CRT_", has_type_id = false)]
public enum CertificateType {
UNKNOWN,
X509,
......@@ -319,7 +319,7 @@ namespace GnuTLS
public static unowned CertificateType[] list ();
}
[CCode (cname = "gnutls_certificate_print_formats_t", cprefix = "GNUTLS_CRT_PRINT_")]
[CCode (cname = "gnutls_certificate_print_formats_t", cprefix = "GNUTLS_CRT_PRINT_", has_type_id = false)]
public enum CertificatePrintFormats {
FULL,
ONELINE,
......@@ -327,7 +327,7 @@ namespace GnuTLS
}
[Flags]
[CCode (cname = "unsigned int", cprefix = "GNUTLS_KEY_")]
[CCode (cname = "unsigned int", cprefix = "GNUTLS_KEY_", has_type_id = false)]
public enum KeyUsage
{
DIGITAL_SIGNATURE,
......@@ -341,7 +341,7 @@ namespace GnuTLS
DECIPHER_ONLY
}
[CCode (cname = "gnutls_server_name_type_t", cprefix = "GNUTLS_NAME_")]
[CCode (cname = "gnutls_server_name_type_t", cprefix = "GNUTLS_NAME_", has_type_id = false)]
public enum ServerNameType {
DNS;
}
......@@ -409,13 +409,13 @@ namespace GnuTLS
}
[SimpleType]
[CCode (cname = "gnutls_datum_t")]
[CCode (cname = "gnutls_datum_t", has_type_id = false)]
public struct Datum {
public void* data;
public uint size;
}
[CCode (cname = "gnutls_params_st")]
[CCode (cname = "gnutls_params_st", has_type_id = false)]
public struct Params {
public ParamsType type;
[CCode (cname = "params.dh")]
......@@ -434,7 +434,7 @@ namespace GnuTLS
[CCode (array_length_pos = "1.8", array_length_type = "size_t")] uint8[] out_oprfi);
/* Supplemental data, RFC 4680. */
[CCode (cname = "gnutls_supplemental_data_format_type_t")]
[CCode (cname = "gnutls_supplemental_data_format_type_t", has_type_id = false)]
public enum SupplementalDataFormatType {
USER_MAPPING_DATA;
......@@ -797,14 +797,14 @@ namespace GnuTLS
public const string KP_ANY;
[CCode (cname = "gnutls_x509_crt_fmt_t", cprefix = "GNUTLS_X509_FMT_")]
[CCode (cname = "gnutls_x509_crt_fmt_t", cprefix = "GNUTLS_X509_FMT_", has_type_id = false)]
public enum CertificateFormat {
DER,
PEM
}
[Flags]
[CCode (cname = "gnutls_certificate_import_flags", cprefix = "GNUTLS_X509_CRT_")]
[CCode (cname = "gnutls_certificate_import_flags", cprefix = "GNUTLS_X509_CRT_", has_type_id = false)]
public enum CertificateImportFlags {
/* Fail if the certificates in the buffer are more than the space
* allocated for certificates. The error code will be
......@@ -814,7 +814,7 @@ namespace GnuTLS
}
[Flags]
[CCode (cname = "unsigned int", cprefix = "GNUTLS_CRL_REASON_")]
[CCode (cname = "unsigned int", cprefix = "GNUTLS_CRL_REASON_", has_type_id = false)]
public enum RevocationReasons {
UNUSED,
KEY_COMPROMISE,
......@@ -828,7 +828,7 @@ namespace GnuTLS
}
[Flags]
[CCode (cname = "gnutls_certificate_verify_flags", cprefix = "GNUTLS_VERIFY_")]
[CCode (cname = "gnutls_certificate_verify_flags", cprefix = "GNUTLS_VERIFY_", has_type_id = false)]
public enum CertificateVerifyFlags
{
// If set a signer does not have to be a certificate authority. This
......@@ -858,7 +858,7 @@ namespace GnuTLS
ALLOW_SIGN_RSA_MD5
}
[CCode (cname = "gnutls_x509_subject_alt_name_t")]
[CCode (cname = "gnutls_x509_subject_alt_name_t", has_type_id = false)]
public enum SubjectAltName {
DNSNAME,
RFC822NAME,
......@@ -897,7 +897,7 @@ namespace GnuTLS
public int rdn_get_by_oid (ref Datum idn, string oid, int index, uint raw_flag, void* buf, ref size_t buf_size);
[SimpleType]
[CCode (cname = "gnutls_x509_ava_st")]
[CCode (cname = "gnutls_x509_ava_st", has_type_id = false)]
public struct Ava
{
[CCode (cname = "oid.data", array_length_cname = "oid.size")]
......@@ -1119,7 +1119,7 @@ namespace GnuTLS
// Flags for the gnutls_x509_privkey_export_pkcs8() function.
[Flags]
[CCode (cname = "gnutls_pkcs_encrypt_flags_t", cprefix = "GNUTLS_PKCS_")]
[CCode (cname = "gnutls_pkcs_encrypt_flags_t", cprefix = "GNUTLS_PKCS_", has_type_id = false)]
public enum PKCSEncryptFlags {
PLAIN,
USE_PKCS12_3DES,
......@@ -1228,7 +1228,7 @@ namespace GnuTLS
public int verify_mac (string pass);
}
[CCode (cheader_filename = "gnutls/pkcs12.h", cname = "gnutls_pkcs12_bag_type_t", cprefix = "GNUTLS_BAG_")]
[CCode (cheader_filename = "gnutls/pkcs12.h", cname = "gnutls_pkcs12_bag_type_t", cprefix = "GNUTLS_BAG_", has_type_id = false)]
public enum PKCS12BagType {
EMPTY,
PKCS8_ENCRYPTED_KEY,
......@@ -1277,7 +1277,7 @@ namespace GnuTLS
[CCode (has_target = false)]
public delegate int RecvKeyFunc (Session session, uint8[] keyfpr, out Datum key);
[CCode (cname = "gnutls_openpgp_crt_fmt_t", cprefix = "GNUTLS_OPENPGP_FMT_")]
[CCode (cname = "gnutls_openpgp_crt_fmt_t", cprefix = "GNUTLS_OPENPGP_FMT_", has_type_id = false)]
public enum CertificateFormat {
RAW,
BASE64
......@@ -1629,7 +1629,7 @@ namespace GnuTLS
// PSK stuff
[CCode (cname = "gnutls_psk_key_flags", cprefix = "GNUTLS_PSK_KEY_")]
[CCode (cname = "gnutls_psk_key_flags", cprefix = "GNUTLS_PSK_KEY_", has_type_id = false)]
public enum PSKKeyFlags
{
RAW,
......@@ -1703,7 +1703,7 @@ namespace GnuTLS
////
[SimpleType]
[CCode (cname = "gnutls_retr_st")]
[CCode (cname = "gnutls_retr_st", has_type_id = false)]
public struct RetrStruct
{
public CertificateType type;
......@@ -1740,7 +1740,7 @@ namespace GnuTLS
size_t seed_size, void* seed, size_t output_size, void* output);
// Gnutls error codes. The mapping to a TLS alert is also shown in comments.
[CCode (cname = "int", cprefix = "GNUTLS_E_", lower_case_cprefix = "gnutls_error_")]
[CCode (cname = "int", cprefix = "GNUTLS_E_", lower_case_cprefix = "gnutls_error_", has_type_id = false)]
public enum ErrorCode {
SUCCESS,
......
......@@ -25,7 +25,7 @@ namespace Gsl
/*
* Physical Constants
*/
[CCode (cprefix="GSL_CONST_NUM_", cheader_filename="gsl/gsl_const_num.h")]
[CCode (cprefix="GSL_CONST_NUM_", cheader_filename="gsl/gsl_const_num.h", has_type_id = false)]
public enum ConstNum
{
FINE_STRUCTURE,
......@@ -48,7 +48,7 @@ namespace Gsl
YOCTO
}
[CCode (cprefix="GSL_CONST_CGS_", cheader_filename="gsl/gsl_const_cgs.h")]
[CCode (cprefix="GSL_CONST_CGS_", cheader_filename="gsl/gsl_const_cgs.h", has_type_id = false)]
public enum ConstCGS
{
SPEED_OF_LIGHT,
......@@ -151,7 +151,7 @@ namespace Gsl
THOMSON_CROSS_SECTION
}
[CCode (cprefix="GSL_CONST_CGSM_", cheader_filename="gsl/gsl_const_cgsm.h")]
[CCode (cprefix="GSL_CONST_CGSM_", cheader_filename="gsl/gsl_const_cgsm.h", has_type_id = false)]
public enum ConstCGSM
{
SPEED_OF_LIGHT,
......@@ -254,7 +254,7 @@ namespace Gsl
THOMSON_CROSS_SECTION
}
[CCode (cprefix="GSL_CONST_MKS_", cheader_filename="gsl/gsl_const_mks.h")]
[CCode (cprefix="GSL_CONST_MKS_", cheader_filename="gsl/gsl_const_mks.h", has_type_id = false)]
public enum ConstMKS
{
SPEED_OF_LIGHT,
......@@ -360,7 +360,7 @@ namespace Gsl
DEBYE
}
[CCode (cprefix="GSL_CONST_MKSA_", cheader_filename="gsl/gsl_const_mksa.h")]
[CCode (cprefix="GSL_CONST_MKSA_", cheader_filename="gsl/gsl_const_mksa.h", has_type_id = false)]
public enum ConstMKSA
{
SPEED_OF_LIGHT,
......@@ -470,7 +470,7 @@ namespace Gsl
/*
* Error Handling
*/
[CCode (cprefix="GSL_", cheader_filename="gsl/gsl_errno.h")]
[CCode (cprefix="GSL_", cheader_filename="gsl/gsl_errno.h", has_type_id = false)]
public enum Status
{
SUCCESS,
......@@ -510,7 +510,7 @@ namespace Gsl
EOF
}
[CCode (cprefix="GSL_PREC_", cheader_filename="gsl/gsl_mode.h")]
[CCode (cprefix="GSL_PREC_", cheader_filename="gsl/gsl_mode.h", has_type_id = false)]
public enum Mode
{
DOUBLE,
......@@ -545,7 +545,7 @@ namespace Gsl
/*
* Mathematical Functions
*/
[CCode (cprefix="", cheader_filename="gsl/gsl_math.h")]
[CCode (cprefix="", cheader_filename="gsl/gsl_math.h", has_type_id = false)]
public enum MathConst
{
M_E,
......@@ -574,7 +574,7 @@ namespace Gsl
</