summaryrefslogtreecommitdiff
path: root/source3/include/proto.h
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>1998-10-04 09:42:51 +0000
committerAndrew Tridgell <tridge@samba.org>1998-10-04 09:42:51 +0000
commit6760e69a68571e01ee57b959193a56278962a23c (patch)
treecab4036d3fcb04cd2ab1ee3ab1eedcd3a1fd2b79 /source3/include/proto.h
parentce843e9735742626bb03cbea61041fff5d215930 (diff)
downloadsamba-6760e69a68571e01ee57b959193a56278962a23c.tar.gz
samba-6760e69a68571e01ee57b959193a56278962a23c.tar.bz2
samba-6760e69a68571e01ee57b959193a56278962a23c.zip
added support for printing via smbwrapper
You can print using "cp filename /smb/SERVER/PRINTER/jobname" You can list the current printqueue using ls (This used to be commit 080fb61b69620e26e8122705383dc2bd0468a519)
Diffstat (limited to 'source3/include/proto.h')
-rw-r--r--source3/include/proto.h7
1 files changed, 7 insertions, 0 deletions
diff --git a/source3/include/proto.h b/source3/include/proto.h
index 78863b5984..29803cdbbc 100644
--- a/source3/include/proto.h
+++ b/source3/include/proto.h
@@ -321,6 +321,7 @@ struct hostent *Get_Hostbyname(char *name);
BOOL process_exists(int pid);
char *uidtoname(uid_t uid);
char *gidtoname(gid_t gid);
+uid_t nametouid(const char *name);
void smb_panic(char *why);
char *readdirname(void *p);
BOOL is_in_path(char *name, name_compare_entry *namelist);
@@ -417,6 +418,8 @@ BOOL cli_establish_connection(struct cli_state *cli,
struct nmb_name *calling, struct nmb_name *called,
char *service, char *service_type,
BOOL do_shutdown, BOOL do_tcon);
+int cli_print_queue(struct cli_state *cli,
+ void (*fn)(struct print_job_info *));
/*The following definitions come from libsmb/credentials.c */
@@ -2294,6 +2297,8 @@ int smbw_utime(const char *fname, void *buf);
int smbw_chown(const char *fname, uid_t owner, gid_t group);
int smbw_chmod(const char *fname, mode_t newmode);
off_t smbw_lseek(int fd, off_t offset, int whence);
+int smbw_dup(int fd);
+int smbw_dup2(int fd, int fd2);
/*The following definitions come from smbwrapper/smbw_dir.c */
@@ -2321,6 +2326,8 @@ void smbw_setup_stat(struct stat *st, char *fname, size_t size, int mode);
BOOL smbw_getatr(struct smbw_server *srv, char *path,
uint32 *mode, size_t *size,
time_t *c_time, time_t *a_time, time_t *m_time);
+int smbw_stat_printjob(struct smbw_server *srv,char *path,
+ size_t *size, time_t *m_time);
int smbw_fstat(int fd, struct stat *st);
int smbw_stat(const char *fname, struct stat *st);