/* -*- Mode: C; tab-width: 8; indent-tabs-mode: t; c-basic-offset: 8 -*- */ /* * Copyright (C) 2000 Ximian, 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 #include <sys/types.h> #include <sys/stat.h> #include <fcntl.h> #include <glib.h> struct ibex; typedef struct ibex ibex; /* All functions that can fail set errno and return NULL or -1 on * failure. */ /* Open the named ibex index file. If CREATE is true, create the file * if it doesn't already exist. */ ibex *ibex_open (char *file, int flags, int mode); /* Write the ibex to disk. */ int ibex_write (ibex *ib); /* only save if ibex has changed. */ int ibex_save (ibex *ib); /* Write the ibex to disk if it has changed, and free all memory * associated with it. */ 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); /* 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); /* 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 * NULL, then the indexer won't assume that the buffer ends on a word * 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); /* 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); /* Rename a file in the index. (This is also fast.) */ 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); /* Find if a word is contained in a specific name reference. */ gboolean ibex_find_name (ibex *ib, char *name, char *word); /* has a file been indexed? */ gboolean ibex_contains_name(ibex *ib, char *name); /* 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); /* Debug function, dumps the whole index tree, showing removed files as well */ void ibex_dump_all (ibex *ib); #endif /* ! IBEX_H */ _yarn/devel/electron6/files/elliptic-6.5.4'>dependabot/npm_and_yarn/devel/electron6/files/elliptic-6.5.4</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8'>dependabot/npm_and_yarn/devel/electron6/files/ini-1.3.8</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19'>dependabot/npm_and_yarn/devel/electron6/files/lodash-4.17.19</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2'>dependabot/npm_and_yarn/devel/electron6/files/lodash.merge-4.6.2</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1'>dependabot/npm_and_yarn/devel/electron6/files/node-fetch-2.6.1</option> <option value='dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2'>dependabot/npm_and_yarn/devel/electron6/files/serve-10.1.2</option> <option value='gnome-3.22'>gnome-3.22</option> <option value='gnome-3.24'>gnome-3.24</option> <option value='gnome-3.26'>gnome-3.26</option> <option value='gnome-3.28'>gnome-3.28</option> <option value='gnome-3.32'>gnome-3.32</option> <option value='gnome-3.36'>gnome-3.36</option> <option value='gstreamer'>gstreamer</option> <option value='gstreamer-1.16'>gstreamer-1.16</option> <option value='gstreamer0.10-removal'>gstreamer0.10-removal</option> <option value='main'>main</option> <option value='master'>master</option> <option value='mate-1.16'>mate-1.16</option> <option value='mate-1.18'>mate-1.18</option> <option value='mate-1.20'>mate-1.20</option> <option value='mate-1.22'>mate-1.22</option> </select> <input type='submit' value='switch'/></form></td></tr> <tr><td class='sub'>FreeBSD GNOME current development ports (https://github.com/freebsd/freebsd-ports-gnome)</td><td class='sub right'></td></tr></table> <table class='tabs'><tr><td> <a href='/~lantw44/cgit/freebsd-ports-gnome/about/?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19'>about</a><a href='/~lantw44/cgit/freebsd-ports-gnome/?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19'>summary</a><a href='/~lantw44/cgit/freebsd-ports-gnome/refs/?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=88ef20ca13247862338f670ff915fddf9e16cbc7'>refs</a><a class='active' href='/~lantw44/cgit/freebsd-ports-gnome/log/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19'>log</a><a href='/~lantw44/cgit/freebsd-ports-gnome/tree/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=88ef20ca13247862338f670ff915fddf9e16cbc7'>tree</a><a href='/~lantw44/cgit/freebsd-ports-gnome/commit/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=88ef20ca13247862338f670ff915fddf9e16cbc7'>commit</a><a href='/~lantw44/cgit/freebsd-ports-gnome/diff/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=88ef20ca13247862338f670ff915fddf9e16cbc7'>diff</a><a href='/~lantw44/cgit/freebsd-ports-gnome/stats/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19'>stats</a></td><td class='form'><form class='right' method='get' action='/~lantw44/cgit/freebsd-ports-gnome/log/x11/sxpc'> <input type='hidden' name='h' value='dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19'/><input type='hidden' name='id' value='88ef20ca13247862338f670ff915fddf9e16cbc7'/><select name='qt'> <option value='grep'>log msg</option> <option value='author'>author</option> <option value='committer'>committer</option> <option value='range'>range</option> </select> <input class='txt' type='search' size='10' name='q' value=''/> <input type='submit' value='search'/> </form> </td></tr></table> <div class='path'>path: <a href='/~lantw44/cgit/freebsd-ports-gnome/log/?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=88ef20ca13247862338f670ff915fddf9e16cbc7'>root</a>/<a href='/~lantw44/cgit/freebsd-ports-gnome/log/x11?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=88ef20ca13247862338f670ff915fddf9e16cbc7'>x11</a>/<a href='/~lantw44/cgit/freebsd-ports-gnome/log/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=88ef20ca13247862338f670ff915fddf9e16cbc7'>sxpc</a></div><div class='content'><table class='list nowrap'><tr class='nohover'><th></th><th class='left'>Commit message (<a href='/~lantw44/cgit/freebsd-ports-gnome/log/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=88ef20ca13247862338f670ff915fddf9e16cbc7&showmsg=1'>Expand</a>)</th><th class='left'>Author</th><th class='left'>Age</th><th class='left'>Files</th><th class='left'>Lines</th></tr> <tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/freebsd-ports-gnome/commit/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=22084e17f721ebb9a063f5603491229fcfc70d9b'>- Fix trailing whitespace in pkg-descrs, categories [p-x]*</a></td><td>amdmi3</td><td><span title='2016-05-19 18:53:05 +0800'>2016-05-19</span></td><td>1</td><td><span class='deletions'>-10</span>/<span class='insertions'>+10</span></td></tr> <tr><td class='commitgraph'>* </td><td><a href='/~lantw44/cgit/freebsd-ports-gnome/commit/x11/sxpc?h=dependabot/npm_and_yarn/devel/electron4/files/lodash-4.17.19&id=d72353c225a0cff8478c442d745a54e4630671fc'>MASTER_SITES cleanup.</a></td><td>mat</td><td><span title='2015-05-14 18:15:04 +0800'>2015-05-14</span>