/usr/include/libgsql/common.h is in libgsql-dev 0.2.2-1.2build1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 | /*
* GSQL - database development tool for GNOME
*
* Copyright (C) 2006-2008 Taras Halturin halturin@gmail.com
*
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 Library General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin Street, Fifth Floor Boston, MA 02110-1301, USA
*/
#ifndef _COMMON_H
#define _COMMON_H
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
#include <gtk/gtk.h>
#ifdef ENABLE_NLS
#include <glib/gi18n.h>
#else
# define textdomain(String) (String)
# define gettext(String) (String)
# define dgettext(Domain,Message) (Message)
# define dcgettext(Domain,Message,Type) (Message)
# define bindtextdomain(Domain,Directory) (Domain)
# define _(String) (String)
# define Q_(String) g_strip_context ((String), (String))
# define N_(String) (String)
#endif
#define HOOKUP_OBJECT(component,widget,name) \
g_object_set_data_full (G_OBJECT (component), name, \
gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)
#define HOOKUP_OBJECT_NO_REF(component,widget,name) \
g_object_set_data (G_OBJECT (component), name, widget)
#define GSQL_GLADE_DIALOGS PACKAGE_GLADE_DIR"/gsql_dialogs.glade"
extern GtkWidget *gsql_window;
extern gpointer gsql_main_thread;
/* debug routines */
extern gboolean gsql_opt_trace_enable;
extern gboolean gsql_opt_debug_enable;
G_BEGIN_DECLS
/* Use this function to set the directory containing installed pixmaps. */
void
add_pixmap_directory (const gchar * directory);
/* This is used to create the pixmaps used in the interface. */
GtkWidget *
create_pixmap (const gchar * filename);
/* This is used to create the pixbufs used in the interface. */
GdkPixbuf *
create_pixbuf (const gchar * filename);
/* marshallers */
void
gsql_marshal_VOID__STRING_STRING (GClosure *closure,
GValue *return_value,
guint n_params,
const GValue *params,
gpointer *invocation,
gpointer *marshal);
/* #ifdef HAVE_ENABLE_TRACE */
#define GSQL_TRACE_FUNC \
if (gsql_opt_trace_enable) \
g_print("trace: [%p] %s [%s:%d]\n", (gpointer) g_thread_self(), __func__, __FILE__, __LINE__)
/* #else */
/* #define GSQL_TRACE_FUNC; */
/* #endif */
/* #ifdef HAVE_ENABLE_DEBUG */
#define GSQL_DEBUG(params...) \
if (gsql_opt_debug_enable) \
g_debug (params)
/* #else */
/* #define GSQL_DEBUG(params...) */
/* #endif */
/* #ifdef HAVE_ENABLE_FIXME */
#define GSQL_FIXME \
g_message ("FIXME: file [%s] line [%d]", __FILE__, __LINE__)
/* #else */
/* #define GSQL_FIXME */
/* #endif */
#define GSQL_THREAD_ENTER \
if (gsql_main_thread !=(gpointer) g_thread_self()) \
gdk_threads_enter (); \
#define GSQL_THREAD_LEAVE \
if (gsql_main_thread != (gpointer) g_thread_self()) \
{ \
gdk_flush (); \
gdk_threads_leave (); \
}; \
gpointer
gsql_thread_join (GThread *thread);
G_END_DECLS
#endif /* _COMMON_H */
|