aboutsummaryrefslogtreecommitdiffstats
path: root/libibex/ibex.h
diff options
context:
space:
mode:
authorDan Winship <danw@src.gnome.org>2000-02-17 10:10:05 +0800
committerDan Winship <danw@src.gnome.org>2000-02-17 10:10:05 +0800
commit89fefc5c8cac87a722f4efd61b49e2c75e765687 (patch)
tree115161dc87397c35da70e03e724c85ded3f0abd9 /libibex/ibex.h
parent704369d07078a4a6a28552eaaad30d3758052d30 (diff)
downloadgsoc2013-evolution-89fefc5c8cac87a722f4efd61b49e2c75e765687.tar
gsoc2013-evolution-89fefc5c8cac87a722f4efd61b49e2c75e765687.tar.gz
gsoc2013-evolution-89fefc5c8cac87a722f4efd61b49e2c75e765687.tar.bz2
gsoc2013-evolution-89fefc5c8cac87a722f4efd61b49e2c75e765687.tar.lz
gsoc2013-evolution-89fefc5c8cac87a722f4efd61b49e2c75e765687.tar.xz
gsoc2013-evolution-89fefc5c8cac87a722f4efd61b49e2c75e765687.tar.zst
gsoc2013-evolution-89fefc5c8cac87a722f4efd61b49e2c75e765687.zip
fix license and indent style
svn path=/trunk/; revision=1814
Diffstat (limited to 'libibex/ibex.h')
-rw-r--r--libibex/ibex.h50
1 files changed, 33 insertions, 17 deletions
diff --git a/libibex/ibex.h b/libibex/ibex.h
index 8afac0dc95..b74db1ed93 100644
--- a/libibex/ibex.h
+++ b/libibex/ibex.h
@@ -1,9 +1,25 @@
+/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */
/*
- Copyright 2000 Helix Code Inc.
-*/
+ * Copyright (C) 2000 Helix Code, Inc.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU Library 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 Library General Public
+ * License along with the Gnome Library; see the file COPYING.LIB. If not,
+ * write to the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
+ * Boston, MA 02111-1307, USA.
+ */
-#ifndef _IBEX_H
-#define _IBEX_H
+#ifndef IBEX_H
+#define IBEX_H
#include <sys/types.h>
#include <glib.h>
@@ -18,27 +34,27 @@ typedef struct ibex ibex;
/* Open the named ibex index file. If CREATE is true, create the file
* if it doesn't already exist.
*/
-ibex *ibex_open(char *file, gboolean create);
+ibex *ibex_open (char *file, gboolean create);
/* Write the ibex to disk. */
-int ibex_write(ibex *ib);
+int ibex_write (ibex *ib);
/* Write the ibex to disk if it has changed, and free all memory
* associated with it.
*/
-int ibex_close(ibex *ib);
+int ibex_close (ibex *ib);
/* Index the named file. (If the FILENAME is already in the index,
* remove the old copy.
*/
-int ibex_index_file(ibex *ib, char *filename);
+int ibex_index_file (ibex *ib, char *filename);
/* Index LEN bytes off FD, using NAME as the filename in the index.
* (If NAME already exists in the index, this adds more data to it.)
*/
-int ibex_index_fd(ibex *ib, char *name, int fd, size_t len);
+int ibex_index_fd (ibex *ib, char *name, int fd, size_t len);
/* Like ibex_index_fd, but with a buffer rather than a file descriptor.
* The buffer does not need to be '\0'-terminated. If UNREAD is not
@@ -46,33 +62,33 @@ int ibex_index_fd(ibex *ib, char *name, int fd, size_t len);
* boundary, and will return (in UNREAD) the number of bytes from the
* end of the buffer that it didn't use, if any.
*/
-int ibex_index_buffer(ibex *ib, char *name, char *buffer,
- size_t len, size_t *unread);
+int ibex_index_buffer (ibex *ib, char *name, char *buffer,
+ size_t len, size_t *unread);
/* Remove entries for a given file from the index. (Most of the removal
* isn't actually done until the file is written out to disk, so this
* is very fast.)
*/
-void ibex_unindex(ibex *ib, char *name);
+void ibex_unindex (ibex *ib, char *name);
/* Rename a file in the index. (This is also fast.) */
-void ibex_rename(ibex *ib, char *oldfilename, char *newfilename);
+void ibex_rename (ibex *ib, char *oldfilename, char *newfilename);
/* Find a word in the index. Returns an array of strings: the caller
* should free the array, but should not free or modify the strings.
*/
-GPtrArray *ibex_find(ibex *ib, char *word);
+GPtrArray *ibex_find (ibex *ib, char *word);
/* Find if a word is contained in a specific name reference.
*/
-gboolean ibex_find_name(ibex *ib, char *name, char *word);
+gboolean ibex_find_name (ibex *ib, char *name, char *word);
/* Return all the files containing all of the words in the given
* array. Returned data is like with ibex_find.
*/
-GPtrArray *ibex_find_all(ibex *ib, GPtrArray *words);
+GPtrArray *ibex_find_all (ibex *ib, GPtrArray *words);
-#endif /* ! _IBEX_H */
+#endif /* ! IBEX_H */