root/fs/ncpfs/ncplib_kernel.h

/* [previous][next][first][last][top][bottom][index][help] */

INCLUDED FROM


   1 /*
   2  *  ncplib_kernel.h
   3  *
   4  *  Copyright (C) 1995, 1996 by Volker Lendecke
   5  *
   6  */
   7 
   8 #ifndef _NCPLIB_H
   9 #define _NCPLIB_H
  10 
  11 #include <linux/fs.h>
  12 #include <linux/ncp.h>
  13 #include <linux/ncp_fs.h>
  14 #include <linux/ncp_fs_sb.h>
  15 #include <linux/types.h>
  16 #include <linux/errno.h>
  17 #include <linux/malloc.h>
  18 #include <linux/stat.h>
  19 #include <linux/fcntl.h>
  20 #include <asm/segment.h>
  21 #include <asm/string.h>
  22 
  23 #include <linux/ncp.h>
  24 
  25 int
  26 ncp_negotiate_buffersize(struct ncp_server *server, int size,
  27                          int *target);
  28 int
  29 ncp_get_encryption_key(struct ncp_server *server,
  30                        char *target);
  31 int
  32 ncp_get_bindery_object_id(struct ncp_server *server,
  33                           int object_type, char *object_name,
  34                           struct ncp_bindery_object *target);
  35 int
  36 ncp_login_encrypted(struct ncp_server *server,
  37                     struct ncp_bindery_object *object,
  38                     unsigned char *key,
  39                     unsigned char *passwd);
  40 int
  41 ncp_login_user(struct ncp_server *server,
  42                unsigned char *username,
  43                unsigned char *password);
  44 int
  45 ncp_get_volume_info_with_number(struct ncp_server *server, int n,
  46                                 struct ncp_volume_info *target);
  47 
  48 int
  49 ncp_get_volume_number(struct ncp_server *server, const char *name,
  50                       int *target);
  51 
  52 int
  53 ncp_file_search_init(struct ncp_server *server,
  54                      int dir_handle, const char *path,
  55                      struct ncp_filesearch_info *target);
  56 
  57 int
  58 ncp_file_search_continue(struct ncp_server *server,
  59                          struct ncp_filesearch_info *fsinfo,
  60                          int attributes, const char *path,
  61                          struct ncp_file_info *target);
  62 
  63 int
  64 ncp_get_finfo(struct ncp_server *server,
  65               int dir_handle, const char *path, const char *name,
  66               struct ncp_file_info *target);
  67 
  68 int
  69 ncp_open_file(struct ncp_server *server,
  70               int dir_handle, const char *path,
  71               int attr, int access,
  72               struct ncp_file_info *target);
  73 int
  74 ncp_close_file(struct ncp_server *server, const char *file_id);
  75 
  76 int
  77 ncp_create_newfile(struct ncp_server *server,
  78                    int dir_handle, const char *path,
  79                    int attr,
  80                    struct ncp_file_info *target);
  81 
  82 int
  83 ncp_create_file(struct ncp_server *server,
  84                 int dir_handle, const char *path,
  85                 int attr,
  86                 struct ncp_file_info *target);
  87 
  88 int
  89 ncp_erase_file(struct ncp_server *server,
  90                int dir_handle, const char *path,
  91                int attr);
  92 
  93 int
  94 ncp_rename_file(struct ncp_server *server,
  95                 int old_handle, const char *old_path,
  96                 int attr,
  97                 int new_handle, const char *new_path);
  98 
  99 int
 100 ncp_create_directory(struct ncp_server *server,
 101                      int dir_handle, const char *path,
 102                      int inherit_mask);
 103 
 104 int
 105 ncp_delete_directory(struct ncp_server *server,
 106                      int dir_handle, const char *path);
 107 
 108 int
 109 ncp_rename_directory(struct ncp_server *server,
 110                      int dir_handle,
 111                      const char *old_path, const char *new_path);
 112 
 113 int
 114 ncp_read(struct ncp_server *server, const char *file_id,
 115          __u32 offset, __u16 to_read,
 116          char *target, int *bytes_read);
 117 
 118 int
 119 ncp_write(struct ncp_server *server, const char *file_id,
 120           __u32 offset, __u16 to_write,
 121           const char *source, int *bytes_written);
 122 
 123 int
 124 ncp_obtain_info(struct ncp_server *server,
 125                 __u8 vol_num, __u32 dir_base,
 126                 char *path, /* At most 1 component */
 127                 struct nw_info_struct *target);
 128 
 129 int
 130 ncp_lookup_volume(struct ncp_server *server,
 131                   char *volname,
 132                   struct nw_info_struct *target);
 133 
 134 
 135 int
 136 ncp_modify_file_or_subdir_dos_info(struct ncp_server *server,
 137                                    struct nw_info_struct *file,
 138                                    __u32 info_mask,
 139                                    struct nw_modify_dos_info *info);
 140 
 141 int
 142 ncp_del_file_or_subdir(struct ncp_server *server,
 143                        struct nw_info_struct *dir, char *name);
 144 
 145 int
 146 ncp_open_create_file_or_subdir(struct ncp_server *server,
 147                                struct nw_info_struct *dir, char *name,
 148                                int open_create_mode,
 149                                __u32 create_attributes,
 150                                int desired_acc_rights,
 151                                struct nw_file_info *target);
 152 
 153 int
 154 ncp_initialize_search(struct ncp_server *server,
 155                       struct nw_info_struct *dir,
 156                       struct nw_search_sequence *target);
 157 
 158 int
 159 ncp_search_for_file_or_subdir(struct ncp_server *server,
 160                               struct nw_search_sequence *seq,
 161                               struct nw_info_struct *target);
 162 
 163 int
 164 ncp_ren_or_mov_file_or_subdir(struct ncp_server *server,
 165                               struct nw_info_struct *old_dir, char *old_name,
 166                               struct nw_info_struct *new_dir, char *new_name);
 167 
 168 
 169 #endif /* _NCPLIB_H */

/* [previous][next][first][last][top][bottom][index][help] */