libsmbconf: add smbconf_create_set_share
[gd/samba-autobuild/.git] / lib / smbconf / smbconf.h
index fcb13882a946ca5f90962a3f09a6313d601b1424..69a55dbf2e238c722be076f8ca2f73e6fb192050 100644 (file)
@@ -204,6 +204,19 @@ bool smbconf_share_exists(struct smbconf_ctx *ctx, const char *servicename);
  */
 sbcErr smbconf_create_share(struct smbconf_ctx *ctx, const char *servicename);
 
+/**
+ * @brief create and set the definition for a new service.
+ *
+ * @param[in] ctx       The smbconf context to use.
+ *
+ * @param[in] service   The definition for the added service.
+ *
+ * @return              SBC_ERR_OK on success, a corresponding sbcErr if an
+ *                      error occured.
+ */
+sbcErr smbconf_create_set_share(struct smbconf_ctx *ctx,
+                               struct smbconf_service *service);
+
 /**
  * @brief Get a definition of a share (service) from configuration.
  *