• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/samba-3.0.25b/source/rpc_parse/

Lines Matching defs:sh2

179 void init_srv_share_info2_str(SH_INFO_2_STR *sh2,
185 init_unistr2(&sh2->uni_netname, net_name, UNI_STR_TERMINATE);
186 init_unistr2(&sh2->uni_remark, remark, UNI_STR_TERMINATE);
187 init_unistr2(&sh2->uni_path, path, UNI_STR_TERMINATE);
188 init_unistr2(&sh2->uni_passwd, passwd, UNI_STR_TERMINATE);
195 static BOOL srv_io_share_info2_str(const char *desc, SH_INFO_2 *sh, SH_INFO_2_STR *sh2, prs_struct *ps, int depth)
197 if (sh2 == NULL)
201 ZERO_STRUCTP(sh2);
210 if(!smb_io_unistr2("", &sh2->uni_netname, True, ps, depth))
214 if(!smb_io_unistr2("", &sh2->uni_remark, True, ps, depth))
218 if(!smb_io_unistr2("", &sh2->uni_path, True, ps, depth))
222 if(!smb_io_unistr2("", &sh2->uni_passwd, True, ps, depth))
232 void init_srv_share_info2(SH_INFO_2 *sh2,
239 sh2->ptr_netname = (net_name != NULL) ? 1 : 0;
240 sh2->type = type;
241 sh2->ptr_remark = (remark != NULL) ? 1 : 0;
242 sh2->perms = perms;
243 sh2->max_uses = max_uses;
244 sh2->num_uses = num_uses;
245 sh2->ptr_path = (path != NULL) ? 1 : 0;
246 sh2->ptr_passwd = (passwd != NULL) ? 1 : 0;
253 static BOOL srv_io_share_info2(const char *desc, SH_INFO_2 *sh2, prs_struct *ps, int depth)
255 if (sh2 == NULL)
264 if(!prs_uint32("ptr_netname", ps, depth, &sh2->ptr_netname))
266 if(!prs_uint32("type ", ps, depth, &sh2->type))
268 if(!prs_uint32("ptr_remark ", ps, depth, &sh2->ptr_remark))
270 if(!prs_uint32("perms ", ps, depth, &sh2->perms))
272 if(!prs_uint32("max_uses ", ps, depth, &sh2->max_uses))
274 if(!prs_uint32("num_uses ", ps, depth, &sh2->num_uses))
276 if(!prs_uint32("ptr_path ", ps, depth, &sh2->ptr_path))
278 if(!prs_uint32("ptr_passwd ", ps, depth, &sh2->ptr_passwd))