diff --git a/libgimpbase/.cvsignore b/libgimpbase/.cvsignore new file mode 100644 index 0000000000..42de370d9b --- /dev/null +++ b/libgimpbase/.cvsignore @@ -0,0 +1,8 @@ +Makefile +Makefile.in +makefile.mingw +*.lo +_libs +.libs +.deps +*.la diff --git a/libgimpbase/Makefile.am b/libgimpbase/Makefile.am new file mode 100644 index 0000000000..32d3d2c41f --- /dev/null +++ b/libgimpbase/Makefile.am @@ -0,0 +1,71 @@ +## Process this file with automake to produce Makefile.in + +libgimpbaseincludedir = $(includedir)/gimp-$(LT_RELEASE)/libgimpbase + +AM_CPPFLAGS = \ + -DGIMPDIR=\""$(gimpdir)"\" \ + -DDATADIR=\""$(gimpdatadir)"\" \ + -DSYSCONFDIR=\""$(gimpsysconfdir)"\" \ + -DG_LOG_DOMAIN=\"LibGimpBase\" \ + @GIMP_THREAD_FLAGS@ + +INCLUDES = \ + -I$(top_srcdir) \ + -I$(top_srcdir)/intl \ + -I../intl \ + $(GLIB_CFLAGS) \ + -I$(includedir) + +EXTRA_DIST = \ + makefile.mingw \ + makefile.mingw.in \ + makefile.msc \ + gimpbase.def + +lib_LTLIBRARIES = libgimpbase-1.3.la + +libgimpbase_1_3_la_SOURCES = \ + gimpbase.h \ + gimpbasetypes.h \ + gimpenv.c \ + gimpenv.h \ + gimplimits.h \ + gimpsignal.c \ + gimpsignal.h \ + gimputils.c \ + gimputils.h \ + gimpparasite.c \ + gimpparasite.h \ + gimpparasiteio.c \ + gimpparasiteio.h \ + gimpprotocol.c \ + gimpprotocol.h \ + gimpunit.h \ + gimpwire.c \ + gimpwire.h + +libgimpbaseinclude_HEADERS = \ + gimpbase.h \ + gimpbasetypes.h \ + gimpenv.h \ + gimplimits.h \ + gimpsignal.h \ + gimputils.h \ + gimpparasite.h \ + gimpparasiteio.h \ + gimpunit.h + +libgimpbase_1_3_la_LDFLAGS = \ + -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE) + +libgimpbase_1_3_la_LIBADD = $(GLIB_LIBS) + +.PHONY: files + +files: + @files=`ls $(DISTFILES) 2> /dev/null`; for p in $$files; do \ + echo $$p; \ + done + +makefile.mingw: $(top_builddir)/config.status $(top_srcdir)/libgimpcolor/makefile.mingw.in + cd $(top_builddir) && CONFIG_FILES=libgimpcolor/$@ CONFIG_HEADERS= $(SHELL) ./config.status diff --git a/libgimpbase/gimpbase.h b/libgimpbase/gimpbase.h new file mode 100644 index 0000000000..7c9f8f0b8e --- /dev/null +++ b/libgimpbase/gimpbase.h @@ -0,0 +1,32 @@ +/* LIBGIMP - The GIMP Library + * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball + * + * 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 + * Library 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. + */ + +#ifndef __GIMP_BASE_H__ +#define __GIMP_BASE_H__ + + +#include + +#include +#include +#include +#include + + +#endif /* __GIMP_BASE_H__ */ diff --git a/libgimpbase/gimpbasetypes.h b/libgimpbase/gimpbasetypes.h new file mode 100644 index 0000000000..a1826af344 --- /dev/null +++ b/libgimpbase/gimpbasetypes.h @@ -0,0 +1,93 @@ +/* LIBGIMP - The GIMP Library + * Copyright (C) 1995-1997 Peter Mattis and Spencer Kimball + * + * 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 + * Library 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. + */ + +#ifndef __GIMP_BASE_TYPES_H__ +#define __GIMP_BASE_TYPES_H__ + +#ifdef __cplusplus +extern "C" { +#endif /* __cplusplus */ + +/* For information look into the C source or the html documentation */ + + +typedef enum +{ + GIMP_UNIT_PIXEL = 0, + + GIMP_UNIT_INCH = 1, + GIMP_UNIT_MM = 2, + GIMP_UNIT_POINT = 3, + GIMP_UNIT_PICA = 4, + + GIMP_UNIT_END = 5, + + GIMP_UNIT_PERCENT = 65536 +} GimpUnit; + +typedef enum +{ + GIMP_PDB_INT32, + GIMP_PDB_INT16, + GIMP_PDB_INT8, + GIMP_PDB_FLOAT, + GIMP_PDB_STRING, + GIMP_PDB_INT32ARRAY, + GIMP_PDB_INT16ARRAY, + GIMP_PDB_INT8ARRAY, + GIMP_PDB_FLOATARRAY, + GIMP_PDB_STRINGARRAY, + GIMP_PDB_COLOR, + GIMP_PDB_REGION, + GIMP_PDB_DISPLAY, + GIMP_PDB_IMAGE, + GIMP_PDB_LAYER, + GIMP_PDB_CHANNEL, + GIMP_PDB_DRAWABLE, + GIMP_PDB_SELECTION, + GIMP_PDB_BOUNDARY, + GIMP_PDB_PATH, + GIMP_PDB_PARASITE, + GIMP_PDB_STATUS, + GIMP_PDB_END +} GimpPDBArgType; + +typedef enum +{ + GIMP_INTERNAL, + GIMP_PLUGIN, + GIMP_EXTENSION, + GIMP_TEMPORARY +} GimpPDBProcType; + +typedef enum +{ + GIMP_PDB_EXECUTION_ERROR, + GIMP_PDB_CALLING_ERROR, + GIMP_PDB_PASS_THROUGH, + GIMP_PDB_SUCCESS, + GIMP_PDB_CANCEL +} GimpPDBStatusType; + + +#ifdef __cplusplus +} +#endif /* __cplusplus */ + +#endif /* __GIMP_BASE_TYPES_H__ */