mirror of
https://github.com/irssi/irssi.git
synced 2024-09-01 04:14:16 -04:00
Made irssi_binary global and exported to perl as get_irssi_binary().
git-svn-id: http://svn.irssi.org/repos/irssi/trunk@3039 dbcabf3a-b0e7-0310-adc4-f8d773084564
This commit is contained in:
parent
3c2aec1214
commit
439818bcf8
@ -33,7 +33,7 @@
|
||||
#include "nicklist.h"
|
||||
|
||||
static char *session_file;
|
||||
static char *irssi_binary;
|
||||
char *irssi_binary;
|
||||
|
||||
static char **session_args;
|
||||
|
||||
@ -354,7 +354,8 @@ void session_init(void)
|
||||
{ NULL, '\0', 0, NULL }
|
||||
};
|
||||
|
||||
session_file = NULL;
|
||||
session_file = NULL;
|
||||
irssi_binary = NULL;
|
||||
args_register(options);
|
||||
|
||||
command_bind("upgrade", NULL, (SIGNAL_FUNC) cmd_upgrade);
|
||||
|
@ -1,6 +1,8 @@
|
||||
#ifndef __SESSION_H
|
||||
#define __SESSION_H
|
||||
|
||||
extern char *irssi_binary;
|
||||
|
||||
void session_set_binary(const char *path);
|
||||
void session_upgrade(void);
|
||||
|
||||
|
@ -3,6 +3,7 @@
|
||||
#include "core.h"
|
||||
|
||||
#include "pidwait.h"
|
||||
#include "session.h"
|
||||
|
||||
#define DEFAULT_COMMAND_CATEGORY "Perl scripts' commands"
|
||||
|
||||
@ -548,6 +549,13 @@ CODE:
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
char *
|
||||
get_irssi_binary()
|
||||
CODE:
|
||||
RETVAL = irssi_binary;
|
||||
OUTPUT:
|
||||
RETVAL
|
||||
|
||||
char *
|
||||
version()
|
||||
PREINIT:
|
||||
|
Loading…
Reference in New Issue
Block a user