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:
parent
bcb868e434
commit
5ef9da6f4f
@ -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);
|
||||
|
@ -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.
|
||||
*
|
||||
|
Loading…
Reference in New Issue
Block a user