2012-02-03 19:42:56 +01:00
|
|
|
/* -*- mode: C; c-file-style: "gnu"; indent-tabs-mode: nil; -*-
|
|
|
|
* GObject introspection: Parsed IDL
|
2008-08-09 14:46:48 +02:00
|
|
|
*
|
|
|
|
* Copyright (C) 2005 Matthias Clasen
|
|
|
|
*
|
2023-10-25 18:10:10 +02:00
|
|
|
* SPDX-License-Identifier: LGPL-2.1-or-later
|
|
|
|
*
|
2008-08-09 14:46:48 +02:00
|
|
|
* 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, write to the
|
|
|
|
* Free Software Foundation, Inc., 59 Temple Place - Suite 330,
|
|
|
|
* Boston, MA 02111-1307, USA.
|
|
|
|
*/
|
|
|
|
|
2023-11-07 19:23:17 +01:00
|
|
|
#pragma once
|
2008-08-09 14:46:48 +02:00
|
|
|
|
|
|
|
#include <glib.h>
|
2010-05-31 22:44:46 +02:00
|
|
|
#include "gitypelib-internal.h"
|
2008-08-09 14:46:48 +02:00
|
|
|
|
|
|
|
G_BEGIN_DECLS
|
|
|
|
|
2023-11-08 15:17:52 +01:00
|
|
|
typedef struct _GIIrTypelibBuild GIIrTypelibBuild;
|
|
|
|
typedef struct _GIIrModule GIIrModule;
|
2008-08-09 14:46:48 +02:00
|
|
|
|
2023-11-08 15:17:52 +01:00
|
|
|
struct _GIIrTypelibBuild {
|
|
|
|
GIIrModule *module;
|
2010-07-26 22:26:46 +02:00
|
|
|
GHashTable *strings;
|
|
|
|
GHashTable *types;
|
|
|
|
GList *nodes_with_attributes;
|
2024-01-15 22:20:02 +01:00
|
|
|
uint32_t n_attributes;
|
2024-01-16 00:10:43 +01:00
|
|
|
uint8_t *data;
|
2024-01-16 02:34:02 +01:00
|
|
|
GList *stack;
|
2010-07-26 22:26:46 +02:00
|
|
|
};
|
|
|
|
|
2023-11-08 15:17:52 +01:00
|
|
|
struct _GIIrModule
|
2010-03-24 19:00:06 +01:00
|
|
|
{
|
2024-01-15 20:20:47 +01:00
|
|
|
char *name;
|
|
|
|
char *version;
|
|
|
|
char *shared_library;
|
|
|
|
char *c_prefix;
|
2024-05-10 18:35:04 +02:00
|
|
|
GPtrArray *dependencies; /* (owned) */
|
2008-08-09 14:46:48 +02:00
|
|
|
GList *entries;
|
2008-11-12 18:17:01 +01:00
|
|
|
|
|
|
|
/* All modules that are included directly or indirectly */
|
2008-11-11 01:48:17 +01:00
|
|
|
GList *include_modules;
|
2008-11-12 18:17:01 +01:00
|
|
|
|
|
|
|
/* Aliases defined in the module or in included modules */
|
|
|
|
GHashTable *aliases;
|
|
|
|
|
2022-07-13 14:26:44 +02:00
|
|
|
/* Structures with the 'pointer' flag (typedef struct _X *X)
|
|
|
|
* in the module or in included modules
|
|
|
|
*/
|
|
|
|
GHashTable *pointer_structures;
|
|
|
|
/* Same as 'pointer' structures, but with the deprecated
|
|
|
|
* 'disguised' flag
|
|
|
|
*/
|
2008-11-12 18:17:01 +01:00
|
|
|
GHashTable *disguised_structures;
|
2008-08-09 14:46:48 +02:00
|
|
|
};
|
|
|
|
|
2024-01-15 20:20:47 +01:00
|
|
|
GIIrModule *gi_ir_module_new (const char *name,
|
|
|
|
const char *nsversion,
|
|
|
|
const char *module_filename,
|
|
|
|
const char *c_prefix);
|
2023-11-08 16:23:31 +01:00
|
|
|
void gi_ir_module_free (GIIrModule *module);
|
2008-08-09 14:46:48 +02:00
|
|
|
|
2023-11-08 16:23:31 +01:00
|
|
|
void gi_ir_module_add_include_module (GIIrModule *module,
|
|
|
|
GIIrModule *include_module);
|
2008-11-12 18:17:01 +01:00
|
|
|
|
2023-11-08 16:23:31 +01:00
|
|
|
GITypelib * gi_ir_module_build_typelib (GIIrModule *module);
|
2008-08-09 14:46:48 +02:00
|
|
|
|
2024-01-16 01:47:01 +01:00
|
|
|
void gi_ir_module_fatal (GIIrTypelibBuild *build,
|
|
|
|
unsigned int line,
|
|
|
|
const char *msg,
|
|
|
|
...) G_GNUC_PRINTF (3, 4) G_GNUC_NORETURN;
|
2010-02-11 23:18:28 +01:00
|
|
|
|
2023-11-08 16:23:31 +01:00
|
|
|
void gi_ir_node_init_stats (void);
|
|
|
|
void gi_ir_node_dump_stats (void);
|
2008-10-24 13:32:31 +02:00
|
|
|
|
2008-08-09 14:46:48 +02:00
|
|
|
G_END_DECLS
|