1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-23 17:34:34 +03:00

Add modules_path() to construct paths to files in MODULESDIR.

Michael
This commit is contained in:
Michael Adam 2008-08-15 00:44:14 +02:00
parent bcb868e434
commit 5ef9da6f4f
2 changed files with 14 additions and 0 deletions

View File

@ -1340,6 +1340,7 @@ char *myhostname(void);
char *lock_path(const char *name);
char *pid_path(const char *name);
char *lib_path(const char *name);
char *modules_path(const char *name);
char *data_path(const char *name);
char *state_path(const char *name);
const char *shlib_ext(void);

View File

@ -2602,6 +2602,19 @@ char *lib_path(const char *name)
return talloc_asprintf(talloc_tos(), "%s/%s", get_dyn_LIBDIR(), name);
}
/**
* @brief Returns an absolute path to a file in the Samba modules directory.
*
* @param name File to find, relative to MODULESDIR.
*
* @retval Pointer to a string containing the full path.
**/
char *modules_path(const char *name)
{
return talloc_asprintf(talloc_tos(), "%s/%s", get_dyn_MODULESDIR(), name);
}
/**
* @brief Returns an absolute path to a file in the Samba data directory.
*