Changeset 223 for branches/samba-3.3.x/source/lib/smbconf/smbconf.c
- Timestamp:
- May 24, 2009, 7:51:24 AM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.3.x/source/lib/smbconf/smbconf.c
r206 r223 44 44 45 45 /** 46 * Tell whether the backend requires messaging to be set up 47 * for the backend to work correctly. 48 */ 49 bool 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 */ 57 bool smbconf_is_writeable(struct smbconf_ctx *ctx) 58 { 59 return ctx->ops->is_writeable(ctx); 60 } 61 62 /** 46 63 * Close the configuration. 47 64 */ 48 65 void smbconf_shutdown(struct smbconf_ctx *ctx) 49 66 { 50 TALLOC_FREE(ctx);67 talloc_free(ctx); 51 68 } 52 69 … … 141 158 142 159 done: 143 TALLOC_FREE(tmp_ctx);160 talloc_free(tmp_ctx); 144 161 return werr; 145 162 } … … 187 204 struct smbconf_service **service) 188 205 { 189 if (!smbconf_share_exists(ctx, servicename)) {190 return WERR_NO_SUCH_SERVICE;191 }192 193 206 return ctx->ops->get_share(ctx, mem_ctx, servicename, service); 194 207 } … … 214 227 const char *valstr) 215 228 { 216 if (!smbconf_share_exists(ctx, service)) {217 return WERR_NO_SUCH_SERVICE;218 }219 220 229 return ctx->ops->set_parameter(ctx, service, param, valstr); 221 230 } … … 253 262 } 254 263 255 if (!smbconf_share_exists(ctx, service)) {256 return WERR_NO_SUCH_SERVICE;257 }258 259 264 return ctx->ops->get_parameter(ctx, mem_ctx, service, param, valstr); 260 265 } … … 287 292 const char *service, const char *param) 288 293 { 289 if (!smbconf_share_exists(ctx, service)) {290 return WERR_NO_SUCH_SERVICE;291 }292 293 294 return ctx->ops->delete_parameter(ctx, service, param); 294 295 } … … 317 318 uint32_t *num_includes, char ***includes) 318 319 { 319 if (!smbconf_share_exists(ctx, service)) {320 return WERR_NO_SUCH_SERVICE;321 }322 323 320 return ctx->ops->get_includes(ctx, mem_ctx, service, num_includes, 324 321 includes); … … 344 341 uint32_t num_includes, const char **includes) 345 342 { 346 if (!smbconf_share_exists(ctx, service)) {347 return WERR_NO_SUCH_SERVICE;348 }349 350 343 return ctx->ops->set_includes(ctx, service, num_includes, includes); 351 344 } … … 369 362 WERROR smbconf_delete_includes(struct smbconf_ctx *ctx, const char *service) 370 363 { 371 if (!smbconf_share_exists(ctx, service)) {372 return WERR_NO_SUCH_SERVICE;373 }374 375 364 return ctx->ops->delete_includes(ctx, service); 376 365 } … … 387 376 return werr; 388 377 } 378 379 WERROR smbconf_transaction_start(struct smbconf_ctx *ctx) 380 { 381 return ctx->ops->transaction_start(ctx); 382 } 383 384 WERROR smbconf_transaction_commit(struct smbconf_ctx *ctx) 385 { 386 return ctx->ops->transaction_commit(ctx); 387 } 388 389 WERROR 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.