Ignore:
Timestamp:
May 24, 2009, 7:51:24 AM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update Samba 3.3 branch to 3.3.3

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.3.x/source/lib/smbconf/smbconf.c

    r206 r223  
    4444
    4545/**
     46 * Tell whether the backend requires messaging to be set up
     47 * for the backend to work correctly.
     48 */
     49bool smbconf_backend_requires_messaging(struct smbconf_ctx *ctx)
     50{
     51        return ctx->ops->requires_messaging(ctx);
     52}
     53
     54/**
     55 * Tell whether the source is writeable.
     56 */
     57bool smbconf_is_writeable(struct smbconf_ctx *ctx)
     58{
     59        return ctx->ops->is_writeable(ctx);
     60}
     61
     62/**
    4663 * Close the configuration.
    4764 */
    4865void smbconf_shutdown(struct smbconf_ctx *ctx)
    4966{
    50         TALLOC_FREE(ctx);
     67        talloc_free(ctx);
    5168}
    5269
     
    141158
    142159done:
    143         TALLOC_FREE(tmp_ctx);
     160        talloc_free(tmp_ctx);
    144161        return werr;
    145162}
     
    187204                         struct smbconf_service **service)
    188205{
    189         if (!smbconf_share_exists(ctx, servicename)) {
    190                 return WERR_NO_SUCH_SERVICE;
    191         }
    192 
    193206        return ctx->ops->get_share(ctx, mem_ctx, servicename, service);
    194207}
     
    214227                             const char *valstr)
    215228{
    216         if (!smbconf_share_exists(ctx, service)) {
    217                 return WERR_NO_SUCH_SERVICE;
    218         }
    219 
    220229        return ctx->ops->set_parameter(ctx, service, param, valstr);
    221230}
     
    253262        }
    254263
    255         if (!smbconf_share_exists(ctx, service)) {
    256                 return WERR_NO_SUCH_SERVICE;
    257         }
    258 
    259264        return ctx->ops->get_parameter(ctx, mem_ctx, service, param, valstr);
    260265}
     
    287292                                const char *service, const char *param)
    288293{
    289         if (!smbconf_share_exists(ctx, service)) {
    290                 return WERR_NO_SUCH_SERVICE;
    291         }
    292 
    293294        return ctx->ops->delete_parameter(ctx, service, param);
    294295}
     
    317318                            uint32_t *num_includes, char ***includes)
    318319{
    319         if (!smbconf_share_exists(ctx, service)) {
    320                 return WERR_NO_SUCH_SERVICE;
    321         }
    322 
    323320        return ctx->ops->get_includes(ctx, mem_ctx, service, num_includes,
    324321                                      includes);
     
    344341                            uint32_t num_includes, const char **includes)
    345342{
    346         if (!smbconf_share_exists(ctx, service)) {
    347                 return WERR_NO_SUCH_SERVICE;
    348         }
    349 
    350343        return ctx->ops->set_includes(ctx, service, num_includes, includes);
    351344}
     
    369362WERROR smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service)
    370363{
    371         if (!smbconf_share_exists(ctx, service)) {
    372                 return WERR_NO_SUCH_SERVICE;
    373         }
    374 
    375364        return ctx->ops->delete_includes(ctx, service);
    376365}
     
    387376        return werr;
    388377}
     378
     379WERROR smbconf_transaction_start(struct smbconf_ctx *ctx)
     380{
     381        return ctx->ops->transaction_start(ctx);
     382}
     383
     384WERROR smbconf_transaction_commit(struct smbconf_ctx *ctx)
     385{
     386        return ctx->ops->transaction_commit(ctx);
     387}
     388
     389WERROR smbconf_transaction_cancel(struct smbconf_ctx *ctx)
     390{
     391        return ctx->ops->transaction_cancel(ctx);
     392}
Note: See TracChangeset for help on using the changeset viewer.