summaryrefslogtreecommitdiff
path: root/source3/printing/printer_list.h
diff options
context:
space:
mode:
authorGünther Deschner <gd@samba.org>2011-05-13 10:02:42 +0200
committerGünther Deschner <gd@samba.org>2011-05-16 12:54:33 +0200
commit854467851da48e02dcd8f869cb031c8943707017 (patch)
tree0d5e7b3b5b84bb26a32f76fbb9a28f65ef686795 /source3/printing/printer_list.h
parentd4d31b31760ac1e7361f453564b63f17685bf58f (diff)
downloadsamba-854467851da48e02dcd8f869cb031c8943707017.tar.gz
samba-854467851da48e02dcd8f869cb031c8943707017.tar.bz2
samba-854467851da48e02dcd8f869cb031c8943707017.zip
s3-printing: Get the location info from cups.
Signed-off-by: Günther Deschner <gd@samba.org>
Diffstat (limited to 'source3/printing/printer_list.h')
-rw-r--r--source3/printing/printer_list.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/source3/printing/printer_list.h b/source3/printing/printer_list.h
index fce3e34248..fb2e007ae6 100644
--- a/source3/printing/printer_list.h
+++ b/source3/printing/printer_list.h
@@ -32,6 +32,8 @@ bool printer_list_parent_init(void);
*
* @param[out] comment A pointer to store the comment of the printer.
*
+ * @param[out] location A pointer to store the location of the printer.
+ *
* @param[out] last_refresh A pointer to store the last refresh time of the
* printer.
*
@@ -41,6 +43,7 @@ bool printer_list_parent_init(void);
NTSTATUS printer_list_get_printer(TALLOC_CTX *mem_ctx,
const char *name,
const char **comment,
+ const char **location,
time_t *last_refresh);
/**
@@ -52,6 +55,8 @@ NTSTATUS printer_list_get_printer(TALLOC_CTX *mem_ctx,
*
* @param[in] comment The comment to store in the db.
*
+ * @param[in] location The location to store in the db.
+ *
* @param[in] last_refresh The last refresh time of the printer to store in
* the db.
*
@@ -61,6 +66,7 @@ NTSTATUS printer_list_get_printer(TALLOC_CTX *mem_ctx,
NTSTATUS printer_list_set_printer(TALLOC_CTX *mem_ctx,
const char *name,
const char *comment,
+ const char *location,
time_t last_refresh);
/**
@@ -94,6 +100,6 @@ NTSTATUS printer_list_mark_reload(void);
*/
NTSTATUS printer_list_clean_old(void);
-NTSTATUS printer_list_run_fn(void (*fn)(const char *, const char *, void *),
+NTSTATUS printer_list_run_fn(void (*fn)(const char *, const char *, const char *, void *),
void *private_data);
#endif /* _PRINTER_LIST_H_ */