home *** CD-ROM | disk | FTP | other *** search
/ Big Green CD 8 / BGCD_8_Dev.iso / NEXTSTEP / Networking / SambaManager / samba-1.9.17p4 / source / netinfo / netinfodef.h < prev    next >
Encoding:
C/C++ Source or Header  |  1998-03-30  |  1.6 KB  |  48 lines

  1. /*
  2.  * This header defines the property names used to locate entries in
  3.  * NetInfo.
  4.  *
  5.  * Robert Frank, Department of Computer Science, University of Basel, 1997.
  6.  */
  7.  
  8.  
  9. /* The string to place between a parameters values (if it has more than one). */
  10. #define S_SEPARATOR " "
  11.  
  12. /* These define the Samba configuration names in NetInfo. */
  13. #define S_SAMBADIR                "/samba"
  14. #define S_SERVICENAME            "name"
  15.  
  16. /* These defines the netbios property name in the machines directories. */
  17. #define S_HOSTDIR                    "/machines"
  18. #define S_NETBIOSNAME            "netbios name"
  19. #define S_HOSTNAME                "name"
  20. #define S_HOSTIP                    "ip_address"
  21.  
  22. /* These define the printer property names in NetInfo. */
  23. #define S_PRINTERDIR            "/printers"
  24. #define S_PRINTERRNAME        "name"
  25. #define S_PRINTERNBNAME        "netbios name"
  26. #define S_PRINTERDRIVER        "nt printer driver"
  27. #define S_PRINTERCOMMENT    "note"
  28. #define S_PRINTCOMMAND        "print command"
  29. #define S_LPRMCOMMAND            "lprm command"
  30. #define S_LPQCOMMAND            "lpq command"
  31. #define S_LPRESUMECOMMAND    "lp resume command"
  32. #define S_LPPAUSECOMMAND    "lp pause command"
  33.  
  34.  
  35. /* These define the password property names in NetInfo. */
  36. #define S_USERDIR                    "/users"
  37. #define S_PASSWD                    "passwd"
  38. #define S_SMBPASSWD                "smbpasswd"
  39. #define S_SMBNTPASSWD            "smbntpasswd"
  40. #define S_PASSWDW                    "_writers_passwd"
  41. #define S_SMBPASSWDW            "_writers_smbpasswd"
  42. #define S_SMBNTPASSWDW        "_writers_smbntpasswd"
  43.  
  44. /* Shortcuts for accessing netifo structures */
  45. #define PWENTNAME(pos)     props.ni_proplist_val[pos].nip_name
  46. #define PWENTVALU(pos)     (props.ni_proplist_val[pos].nip_val.ni_namelist_len>0)? \
  47.                           props.ni_proplist_val[pos].nip_val.ni_namelist_val[0]:""
  48.