first cut at gtk-doc

This commit is contained in:
brianb
2004-04-13 00:39:12 +00:00
parent 341fc9d4ef
commit 1295d079ae
10 changed files with 427 additions and 8 deletions

View File

@@ -149,6 +149,16 @@ MdbFile *f;
f->refs++;
return mdb;
}
/**
* mdb_open:
* @filename: path to MDB (database) file
*
* Opens an MDB file and returns an MdbHandle to it. MDB File may be relative
* to the current directory, a full path to the file, or relative to a
* component of $MDBPATH.
*
* Return value: pointer to MdbHandle structure.
**/
MdbHandle *mdb_open(char *filename)
{
return _mdb_open(filename, FALSE);

View File

@@ -181,6 +181,15 @@ mdb_index_hash_text(guchar *text, guchar *hash)
}
hash[strlen(text)]=0;
}
void
mdb_index_swap_n(unsigned char *src, int sz, unsigned char *dest)
{
int i, j = 0;
for (i = sz; i > 0; i++) {
dest[j++] = src[i];
}
}
guint32
mdb_index_swap_int32(guint32 l)
{