Type representing a path. More...
#include "config.h"#include <stdbool.h>#include <stddef.h>#include <stdint.h>#include "mutt/lib.h"#include "core/lib.h"#include "set.h"#include "types.h"
Include dependency graph for path.c:Go to the source code of this file.
Functions | |
| static char * | path_tidy (const char *path, bool is_dir) |
| Tidy a path for storage. | |
| static void | path_destroy (void *var, const struct ConfigDef *cdef) |
| Destroy a Path - Implements ConfigSetType::destroy() -. | |
| static int | path_string_set (void *var, struct ConfigDef *cdef, const char *value, struct Buffer *err) |
| Set a Path by string - Implements ConfigSetType::string_set() -. | |
| static int | path_string_get (void *var, const struct ConfigDef *cdef, struct Buffer *result) |
| Get a Path as a string - Implements ConfigSetType::string_get() -. | |
| static int | path_native_set (void *var, const struct ConfigDef *cdef, intptr_t value, struct Buffer *err) |
| Set a Path config item by string - Implements ConfigSetType::native_set() -. | |
| static intptr_t | path_native_get (void *var, const struct ConfigDef *cdef, struct Buffer *err) |
| Get a string from a Path config item - Implements ConfigSetType::native_get() -. | |
| static bool | path_has_been_set (void *var, const struct ConfigDef *cdef) |
| Is the config value different to its initial value? | |
| static int | path_reset (void *var, const struct ConfigDef *cdef, struct Buffer *err) |
| Reset a Path to its initial value - Implements ConfigSetType::reset() -. | |
Variables | |
| const struct ConfigSetType | CstPath |
| Config type representing a path. | |
Type representing a path.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.
Definition in file path.c.
|
static |
Tidy a path for storage.
| path | Path to be tidied |
| is_dir | Is the path a directory? |
| ptr | Tidy path |
Expand ~ and remove junk like /./
Definition at line 57 of file path.c.
Here is the call graph for this function:
Here is the caller graph for this function:| const struct ConfigSetType CstPath |
Config type representing a path.
Definition at line 273 of file path.c.