[print notify fixes from APP_HEAD]
[garming/samba-autobuild/.git] / source3 / include / printing.h
index 38ff7eac36695628f15358c904df907794b5d0ff..1d658a07681e2330d70d1faf0d45ca72aaa8cf3b 100644 (file)
@@ -74,4 +74,20 @@ extern struct printif        cups_printif;
 #define PRINT_SPOOL_PREFIX "smbprn."
 #define PRINT_DATABASE_VERSION 5
 
+/* There can be this many printing tdb's open, plus any locked ones. */
+#define MAX_PRINT_DBS_OPEN 1
+
+struct tdb_print_db {
+       struct tdb_print_db *next, *prev;
+       TDB_CONTEXT *tdb;
+       int ref_count;
+       fstring printer_name;
+};
+
+/* 
+ * Used for print notify
+ */
+
+#define NOTIFY_PID_LIST_KEY "NOTIFY_PID_LIST"
+
 #endif /* PRINTING_H_ */