|
|
@ -240,7 +240,7 @@ static void reload_module(void)
|
|
|
|
|
|
|
|
|
|
|
|
static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs)
|
|
|
|
static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char tmp[AST_CONFIG_MAX_PATH];
|
|
|
|
char tmp[PATH_MAX];
|
|
|
|
char *module = gtk_file_selection_get_filename(fs);
|
|
|
|
char *module = gtk_file_selection_get_filename(fs);
|
|
|
|
char buf[256];
|
|
|
|
char buf[256];
|
|
|
|
snprintf(tmp, sizeof(tmp), "%s/", ast_config_AST_MODULE_DIR);
|
|
|
|
snprintf(tmp, sizeof(tmp), "%s/", ast_config_AST_MODULE_DIR);
|
|
|
@ -260,7 +260,7 @@ static void file_ok_sel(GtkWidget *w, GtkFileSelection *fs)
|
|
|
|
|
|
|
|
|
|
|
|
static void add_module(void)
|
|
|
|
static void add_module(void)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
char tmp[AST_CONFIG_MAX_PATH];
|
|
|
|
char tmp[PATH_MAX];
|
|
|
|
GtkWidget *filew;
|
|
|
|
GtkWidget *filew;
|
|
|
|
snprintf(tmp, sizeof(tmp), "%s/*.so", ast_config_AST_MODULE_DIR);
|
|
|
|
snprintf(tmp, sizeof(tmp), "%s/*.so", ast_config_AST_MODULE_DIR);
|
|
|
|
filew = gtk_file_selection_new("Load Module");
|
|
|
|
filew = gtk_file_selection_new("Load Module");
|
|
|
|