Use makefile to build cui frontend(s).
[mediadatabase.git] / libdb / sqlite.h
blobf0f7c3d3b1eee138182d0047d3cc1ec231f97c8b
1 /* -*- Mode: C ; c-basic-offset: 2 -*- */
2 /*****************************************************************************
4 * $Id: sqlite.h,v 1.2 2004/05/02 13:16:58 nedko Exp $
6 * DESCRIPTION:
7 * SQLite backend header.
9 * AUTHOR:
10 * Nedko Arnaudov <nedko@users.sourceforge.net>
12 * LICENSE:
13 * GNU GENERAL PUBLIC LICENSE version 2
15 *****************************************************************************/
17 #ifndef SQLITE_H__B1AEAB83_AA4D_4E16_9036_43389679E923__INCLUDED
18 #define SQLITE_H__B1AEAB83_AA4D_4E16_9036_43389679E923__INCLUDED
20 typedef struct
22 } mediadb_sqlite;
24 mediadb_result
25 mediadb_sqlite_open(
26 mediadb_sqlite *pDB,
27 const char *pszHost,
28 const char *pszUser,
29 const char *pszPass,
30 const char *pszDB);
32 mediadb_result
33 mediadb_sqlite_media_add_new(
34 mediadb_sqlite *pDB,
35 const char *pszName,
36 const char *pszComment,
37 mediadb_mediatype nType,
38 mediadb_uint *pnNewMediaID);
40 mediadb_result
41 mediadb_sqlite_media_update_properties(
42 mediadb_sqlite *pDB,
43 mediadb_uint nMediaID,
44 mediadb_uint nTimeAdded,
45 mediadb_uint nTotalFiles,
46 mediadb_uint nTotalSize);
48 mediadb_result
49 mediadb_sqlite_file_add_new(
50 mediadb_sqlite *pDB,
51 mediadb_uint nMediaID,
52 mediadb_filetype Filetype,
53 const char *pszPath,
54 const char *pszName,
55 mediadb_uint nFileSize,
56 mediadb_uint nFileTime);
58 mediadb_result
59 mediadb_sqlite_close(
60 mediadb_sqlite *pDB);
62 #endif /* #ifndef SQLITE_H__B1AEAB83_AA4D_4E16_9036_43389679E923__INCLUDED */
64 /*****************************************************************************
66 * Modifications log:
68 * !!! WARNING !!! Following lines are automatically updated by the CVS system.
70 * $Log: sqlite.h,v $
71 * Revision 1.2 2004/05/02 13:16:58 nedko
72 * Supply filetype when adding new file
74 * Revision 1.1 2004/04/27 09:12:28 nedko
75 * Initial revision.
77 *****************************************************************************/