![]() |
![]() |
![]() |
Liboobs (System configuration management) Reference Manual | ![]() |
---|---|---|---|---|
Top | Description | Object Hierarchy |
struct OobsShareAclElement; struct OobsShareNFS; struct OobsShareNFSClass; void oobs_share_nfs_add_acl_element (OobsShareNFS *share
,const gchar *element
,gboolean read_only
); GSList * oobs_share_nfs_get_acl (OobsShareNFS *share
); OobsShare * oobs_share_nfs_new (const gchar *path
); void oobs_share_nfs_set_acl (OobsShareNFS *share
,GSList *acl
);
struct OobsShareNFSClass { OobsShareClass parent_class; void (*_oobs_padding1) (void); void (*_oobs_padding2) (void); };
void oobs_share_nfs_add_acl_element (OobsShareNFS *share
,const gchar *element
,gboolean read_only
);
Adds an ACL entry for a host, element
may be a host name,
an IP address or a combination in the form "IP address/Network mask".
|
An OobsShareNFS. |
|
Host in the share ACL. |
|
Whether the share is read only for the element. |
GSList * oobs_share_nfs_get_acl (OobsShareNFS *share
);
Returns the ACL defined for this share.
|
An OobsShareNFS. |
Returns : |
A GList containing OobsShareAclElement structs,
this list must be freed with g_list_free() . |
OobsShare * oobs_share_nfs_new (const gchar *path
);
Returns a new NFS share for the given path.
|
share path. |
Returns : |
A newly allocated OobsShareNFS. |
void oobs_share_nfs_set_acl (OobsShareNFS *share
,GSList *acl
);
Overwrites the list of ACL entries for the share. The previous list and its
contents will be free, so any merging will have to be done by hand.
Alternatively, you can use oobs_share_nfs_add_acl_element()
.
|
An OobsShareNFS. |
|
A GList of OobsShareAclElement. |