[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
shishi/db Makefile.am shisa.h cfg.c init.c inte...
From: |
shishi-commit |
Subject: |
shishi/db Makefile.am shisa.h cfg.c init.c inte... |
Date: |
Fri, 28 Nov 2003 14:38:47 -0500 |
CVSROOT: /cvsroot/shishi
Module name: shishi
Branch:
Changes by: Simon Josefsson <address@hidden> 03/11/28 14:38:47
Modified files:
db : Makefile.am shisa.h
Added files:
db : cfg.c init.c internal.h
Log message:
Add.
CVSWeb URLs:
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/db/cfg.c?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/db/init.c?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/db/internal.h?rev=1.1
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/db/Makefile.am.diff?tr1=1.2&tr2=1.3&r1=text&r2=text
http://savannah.gnu.org/cgi-bin/viewcvs/shishi/shishi/db/shisa.h.diff?tr1=1.1&tr2=1.2&r1=text&r2=text
Patches:
Index: shishi/db/Makefile.am
diff -u shishi/db/Makefile.am:1.2 shishi/db/Makefile.am:1.3
--- shishi/db/Makefile.am:1.2 Fri Nov 28 13:20:39 2003
+++ shishi/db/Makefile.am Fri Nov 28 14:38:47 2003
@@ -20,9 +20,13 @@
AM_CPPFLAGS = -I$(top_srcdir)/gl -I../lib
+DEFS = -DLOCALEDIR=\"$(localedir)\" \
+ -DSYSTEMCFGFILE=\"$(sysconfdir)/shisa.conf\" \
+ @DEFS@
+
include_HEADERS = shisa.h
lib_LTLIBRARIES = libshisa.la
-libshisa_la_SOURCES = shisa.h db.c
+libshisa_la_SOURCES = shisa.h init.c cfg.c
libshisa_la_LIBADD = ../gl/libfoo.la ../lib/libshishi.la
# XXX use different libtool version for this library?
libshisa_la_LDFLAGS = -version-info $(LT_CURRENT):$(LT_REVISION):$(LT_AGE)
Index: shishi/db/shisa.h
diff -u shishi/db/shisa.h:1.1 shishi/db/shisa.h:1.2
--- shishi/db/shisa.h:1.1 Fri Nov 28 13:20:39 2003
+++ shishi/db/shisa.h Fri Nov 28 14:38:47 2003
@@ -26,6 +26,15 @@
#include <time.h> /* time_t */
#include <shishi-int.h> /* uint32_t */
+/* Error codes */
+enum Shisa_rc
+{
+ SHISA_OK = 0,
+ SHISA_IO_ERROR,
+ SHISA_HANDLE_ERROR
+};
+typedef enum Shisa_rc Shisa_rc;
+
typedef struct Shisa Shisa;
typedef struct Shisa_realm Shisa_realm;
typedef struct Shisa_principal Shisa_principal;
@@ -56,8 +65,13 @@
};
typedef struct Shisa_key_info Shisa_key_info;
-/* Global operations. */
+/* init.c */
extern Shisa *shisa (void);
+extern void shisa_done (Shisa * dbh);
+extern int shisa_init (Shisa ** dbh);
+extern int shisa_init_with_paths (Shisa ** dbh, const char *file);
+
+/* */
extern int shisa_enumerate_realms (Shisa *dbh,
char ***realms,
size_t *nrealms);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- shishi/db Makefile.am shisa.h cfg.c init.c inte...,
shishi-commit <=