| 1344 | */ |
| 1345 | |
| 1346 | void proj_context_set_user_writable_directory(PJ_CONTEXT *ctx, const char *path, |
| 1347 | int create) { |
| 1348 | if (!ctx) |
| 1349 | ctx = pj_get_default_ctx(); |
| 1350 | ctx->user_writable_directory = path ? path : ""; |
| 1351 | if (!path || create) { |
| 1352 | proj_context_get_user_writable_directory(ctx, create); |
| 1353 | } |
| 1354 | } |
| 1355 | |
| 1356 | // --------------------------------------------------------------------------- |
| 1357 |