-
Notifications
You must be signed in to change notification settings - Fork 86
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Introduce experimental SQLite CNID backend, GitHub #1177
Based on the Netatalk MySQL CNID backend by Ralph Boehme. Adapted for SQLite by Christopher Kobayashi. Ported to Netatalk 3 by dgsga. Touched up for Netatalk 4 by Daniel Markstedt.
- Loading branch information
Showing
8 changed files
with
1,008 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
#ifndef _ATALK_CNID_SQLITE_PRIVATE_H | ||
#define _ATALK_CNID_SQLITE_PRIVATE_H 1 | ||
|
||
#include <atalk/cnid_private.h> | ||
#include <atalk/uuid.h> | ||
|
||
#define CNID_SQLITE_FLAG_DEPLETED (1 << 0) /* CNID set overflowed */ | ||
|
||
typedef struct CNID_sqlite_private { | ||
struct vol *vol; | ||
uint32_t cnid_sqlite_flags; | ||
sqlite3 *cnid_sqlite_con; | ||
char *cnid_sqlite_voluuid_str; | ||
cnid_t cnid_sqlite_hint; | ||
sqlite3_stmt *cnid_lookup_stmt; | ||
sqlite3_stmt *cnid_add_stmt; | ||
sqlite3_stmt *cnid_put_stmt; | ||
} CNID_sqlite_private; | ||
|
||
#endif |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.