libextractor

GNU libextractor
Log | Files | Refs | Submodules | README | LICENSE

commit d5f9f6d4abeed3cbd49daa5a127180b92f22d231
parent 4431afd4ebdc03782a4f83b9c5705c86f4be4b1a
Author: Christian Grothoff <christian@grothoff.org>
Date:   Sun,  4 Sep 2005 07:48:17 +0000

dead

Diffstat:
Dsrc/plugins/ole2/gsf-infile-msole.c | 23-----------------------
Dsrc/plugins/ole2/gsf-infile-msole.h | 58----------------------------------------------------------
Dsrc/plugins/ole2/gsf-input.c | 28----------------------------
Dsrc/plugins/ole2/gsf-input.h | 61-------------------------------------------------------------
Dsrc/plugins/ole2/gsf-utils.c | 24------------------------
Dsrc/plugins/ole2/gsf-utils.h | 37-------------------------------------
6 files changed, 0 insertions(+), 231 deletions(-)

diff --git a/src/plugins/ole2/gsf-infile-msole.c b/src/plugins/ole2/gsf-infile-msole.c @@ -1,23 +0,0 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * This file is part of libextractor. - * (C) 2004,2005 Vidyut Samanta and Christian Grothoff - * - * gsf-infile-msole.c : - * - * Copyright (C) 2002-2004 Jody Goldberg (jody@gnome.org) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU Lesser General Public - * License as published by the Free Software Foundation. - * - * 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 Lesser 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 - */ diff --git a/src/plugins/ole2/gsf-infile-msole.h b/src/plugins/ole2/gsf-infile-msole.h @@ -1,58 +0,0 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * gsf-infile-msole.h: - * - * Copyright (C) 2002-2004 Jody Goldberg (jody@gnome.org) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU Lesser General Public - * License as published by the Free Software Foundation. - * - * 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 Lesser 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 - */ - -#ifndef GSF_INFILE_MSOLE_H -#define GSF_INFILE_MSOLE_H - -#include "gsf-input.h" - -struct GsfInfileMSOle; - -struct GsfInfileMSOle * gsf_infile_msole_new (struct GsfInput *source); - -int -gsf_infile_msole_num_children (struct GsfInfileMSOle *infile); - -struct GsfInput * -gsf_infile_msole_child_by_index (struct GsfInfileMSOle *infile, int target); - -char const * -gsf_infile_msole_name_by_index (struct GsfInfileMSOle *infile, int target); - - -void -gsf_infile_msole_finalize (struct GsfInfileMSOle * ole); - -/** - * gsf_infile_msole_get_class_id : - * @ole: a #GsfInfileMSOle - * @res: 16 byte identifier (often a GUID in MS Windows apps) - * - * Retrieves the 16 byte indentifier (often a GUID in MS Windows apps) - * stored within the directory associated with @ole and stores it in @res. - * - * Returns TRUE on success - **/ -int -gsf_infile_msole_get_class_id (const struct GsfInfileMSOle *ole, - unsigned char *res); - -#endif /* GSF_INFILE_MSOLE_H */ diff --git a/src/plugins/ole2/gsf-input.c b/src/plugins/ole2/gsf-input.c @@ -1,28 +0,0 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * gsf-input.c: interface for used by the ole layer to read raw data - * - * Copyright (C) 2002-2004 Jody Goldberg (jody@gnome.org) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU Lesser General Public - * License as published by the Free Software Foundation. - * - * 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 Lesser 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 - */ - -#include "platform.h" -#include "gsf-input.h" -#include "gsf-utils.h" -#include <string.h> - - - diff --git a/src/plugins/ole2/gsf-input.h b/src/plugins/ole2/gsf-input.h @@ -1,61 +0,0 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * gsf-input.h: interface for used by the ole layer to read raw data - * - * Copyright (C) 2002-2004 Jody Goldberg (jody@gnome.org) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU Lesser General Public - * License as published by the Free Software Foundation. - * - * 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 Lesser 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 - */ - -#ifndef GSF_INPUT_H -#define GSF_INPUT_H - -#include <sys/types.h> -#include <unistd.h> - -struct GsfInput; - -/** - * gsf_input_memory_new: - * @buf: The input bytes - * @length: The length of @buf - * @needs_free: Whether you want this memory to be free'd at object destruction - * - * Returns: A new #GsfInputMemory - */ -struct GsfInput * -gsf_input_new (const unsigned char *buf, - off_t length, - int needs_free); - -char const * gsf_input_name (struct GsfInput *input); -struct GsfInput * gsf_input_dup (struct GsfInput *input); -void gsf_input_finalize (struct GsfInput *input); -struct GsfInput * gsf_input_sibling (const struct GsfInput *input, char const *name); -off_t gsf_input_size (struct GsfInput *input); -int gsf_input_eof (struct GsfInput *input); -const unsigned char * gsf_input_read (struct GsfInput *input, - size_t num_bytes, - unsigned char * optional_buffer); -off_t gsf_input_remaining (struct GsfInput *input); -off_t gsf_input_tell (struct GsfInput *input); -int gsf_input_seek (struct GsfInput *input, - off_t offset, - int whence); -int gsf_input_set_name (struct GsfInput *input, char const *name); -int gsf_input_set_size (struct GsfInput *input, off_t size); - - -#endif /* GSF_INPUT_H */ diff --git a/src/plugins/ole2/gsf-utils.c b/src/plugins/ole2/gsf-utils.c @@ -1,24 +0,0 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * gsf-utils.c: - * - * Copyright (C) 2002-2004 Jody Goldberg (jody@gnome.org) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU Lesser General Public - * License as published by the Free Software Foundation. - * - * 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 Lesser 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 - */ - -#include "platform.h" -#include "gsf-utils.h" -#include "gsf-input.h" diff --git a/src/plugins/ole2/gsf-utils.h b/src/plugins/ole2/gsf-utils.h @@ -1,37 +0,0 @@ -/* vim: set sw=8: -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ -/* - * gsf-utils.h: - * - * Copyright (C) 2002-2004 Jody Goldberg (jody@gnome.org) - * - * This program is free software; you can redistribute it and/or - * modify it under the terms of version 2.1 of the GNU Lesser General Public - * License as published by the Free Software Foundation. - * - * 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 Lesser 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 - */ - -#ifndef GSF_UTILS_H -#define GSF_UTILS_H - -#include <glib-object.h> -void gsf_le_set_float (void *p, float f); -void gsf_le_set_double (void *p, double d); - - -char const *gsf_extension_pointer (char const * path); -void gsf_iconv_close (GIConv handle); - -#undef g_return_val_if_fail -#define g_return_val_if_fail(cond,ret) do{if (!(cond)) return ret;}while(0) - - -#endif /* GSF_UTILS_H */