/* this file is a copy of gimp-1.2.2/plug-ins/gap/gap_lib.h * reduced to those procedures * that are required to compile onionskin without the need of the * full gimp source tree */ /* gap_lib.h * 1997.11.01 hof (Wolfgang Hofer) * * GAP ... Gimp Animation Plugins * * basic anim functions * */ /* The GIMP -- an image manipulation program * Copyright (C) 1995 Spencer Kimball and Peter Mattis * * 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 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ /* revision history: * 1.1.29a; 2000/11/23 hof: gap locking (changed to procedures and placed here) * 1.1.20a; 2000/04/25 hof: new: p_get_video_paste_name p_clear_video_paste * 1.1.14a; 2000/01/02 hof: new: p_get_frame_nr * 1.1.8a; 1999/08/31 hof: new: p_strdup_del_underscore and p_strdup_add_underscore * 0.99.00; 1999/03/15 hof: prepared for win/dos filename conventions * 0.96.02; 1998/08/05 hof: extended gap_dup (duplicate range instead of singele frame) * added gap_shift (framesequence shift) * 0.96.00; 1998/06/27 hof: added gap animation sizechange plugins * (moved range_ops to seperate .h file) * 0.94.01; 1998/04/27 hof: added flatten_mode to plugin: gap_range_to_multilayer * 0.90.00; hof: 1.st (pre) release */ #ifndef _GAP_LIB_H #define _GAP_LIB_H #include #include /* G_DIR_SEPARATOR (is defined in glib.h if you have glib-1.2.0 or later) */ #ifdef G_OS_WIN32 /* Filenames in WIN/DOS Style */ #ifndef G_DIR_SEPARATOR #define G_DIR_SEPARATOR '\\' #endif #define DIR_ROOT ':' #else /* !G_OS_WIN32 */ /* Filenames in UNIX Style */ #ifndef G_DIR_SEPARATOR #define G_DIR_SEPARATOR '/' #endif #define DIR_ROOT '/' #endif /* !G_OS_WIN32 */ typedef struct { char key[50]; long lock; /* 0 ... NOT Locked, 1 ... locked */ gint32 image_id; gint32 pid; } t_gap_lockdata; extern int gap_debug; /* procedures used in other gap*.c files */ int p_file_exists(char *fname); char* p_alloc_extension(char *imagename); int p_save_named_frame (gint32 image_id, char *sav_name); gint32 p_load_image (char *lod_name); gint32 p_save_named_image(gint32 image_id, char *sav_name, GimpRunModeType run_mode); char* p_alloc_fname(char *basename, long nr, char *extension); char* p_gzip (char *orig_name, char *new_name, char *zip); gint32 p_getpid(void); gint p_pid_is_alive(gint32 pid); gint p_gap_lock_is_locked(gint32 image_id, GimpRunModeType run_mode); void p_gap_lock_set(gint32 image_id); void p_gap_lock_remove(gint32 image_id); #endif