Added SILC Server library.
[silc.git] / lib / silcskr / silcskr_i.h
diff --git a/lib/silcskr/silcskr_i.h b/lib/silcskr/silcskr_i.h
new file mode 100644 (file)
index 0000000..ef6ec71
--- /dev/null
@@ -0,0 +1,45 @@
+/*
+
+  silcskr_i.h
+
+  Author: Pekka Riikonen <priikone@silcnet.org>
+
+  Copyright (C) 2005 Pekka Riikonen
+
+  This program is free software; you can redistribute it and/or modify
+  it under the terms of the GNU General Public License as published by
+  the Free Software Foundation; version 2 of the License.
+
+  This program is distributed in the hope that it will be useful,
+  but WITHOUT ANY WARRANTY; without even the implied warranty of
+  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+  GNU General Public License for more details.
+
+*/
+
+#ifndef SILCSKR_I_H
+#define SILCSKR_I_H
+
+#ifndef SILCSKR_H
+#error "Do not include this header directly"
+#endif
+
+/* Internal representation of SilcSKRKey context. */
+typedef struct {
+  struct SilcSKRKeyStruct key;            /* Key data */
+  SilcInt32 refcnt;                       /* Reference counter */
+} *SilcSKRKeyInternal;
+
+/* Key Repository context */
+struct SilcSKRObject {
+  SilcSchedule scheduler;
+  SilcMutex lock;                        /* Repository lock */
+  SilcHashTable keys;                    /* All keys in repository */
+};
+
+/* Find context */
+struct SilcSKRFindStruct {
+  SilcHashTable constr;                           /* Search constraints */
+};
+
+#endif /* SILCSKR_I_H */