mirror of
https://github.com/mdbtools/mdbtools.git
synced 2026-03-10 00:20:54 +08:00
first cut at gtk-doc
This commit is contained in:
@@ -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);
|
||||
|
||||
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user