mirror of
https://github.com/profanity-im/profanity.git
synced 2024-12-04 14:46:46 -05:00
Renamed plugins files
This commit is contained in:
parent
35d4f42466
commit
8d2d71bacb
@ -22,7 +22,7 @@ profanity_SOURCES = \
|
|||||||
src/config/accounts.c src/config/accounts.h \
|
src/config/accounts.c src/config/accounts.h \
|
||||||
src/config/preferences.c src/config/preferences.h \
|
src/config/preferences.c src/config/preferences.h \
|
||||||
src/config/theme.c src/config/theme.h \
|
src/config/theme.c src/config/theme.h \
|
||||||
src/plugins/api.h src/plugins/api.c
|
src/plugins/plugins.h src/plugins/plugins.c
|
||||||
|
|
||||||
TESTS = tests/testsuite
|
TESTS = tests/testsuite
|
||||||
check_PROGRAMS = tests/testsuite
|
check_PROGRAMS = tests/testsuite
|
||||||
@ -49,7 +49,7 @@ tests_testsuite_SOURCES = \
|
|||||||
src/config/accounts.c src/config/accounts.h \
|
src/config/accounts.c src/config/accounts.h \
|
||||||
src/config/preferences.c src/config/preferences.h \
|
src/config/preferences.c src/config/preferences.h \
|
||||||
src/config/theme.c src/config/theme.h \
|
src/config/theme.c src/config/theme.h \
|
||||||
src/plugins/api.h src/plugins/api.c \
|
src/plugins/plugins.h src/plugins/plugins.c \
|
||||||
tests/test_roster.c tests/test_common.c tests/test_history.c \
|
tests/test_roster.c tests/test_common.c tests/test_history.c \
|
||||||
tests/test_autocomplete.c tests/testsuite.c tests/test_parser.c \
|
tests/test_autocomplete.c tests/testsuite.c tests/test_parser.c \
|
||||||
tests/test_jid.c
|
tests/test_jid.c
|
||||||
|
@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
#include <Python.h>
|
#include <Python.h>
|
||||||
|
|
||||||
#include "plugins/api.h"
|
#include "plugins/plugins.h"
|
||||||
#include "ui/ui.h"
|
#include "ui/ui.h"
|
||||||
|
|
||||||
static GSList* _get_module_names(void);
|
static GSList* _get_module_names(void);
|
||||||
@ -51,7 +51,7 @@ static PyMethodDef apiMethods[] = {
|
|||||||
};
|
};
|
||||||
|
|
||||||
void
|
void
|
||||||
api_init(void)
|
plugins_init(void)
|
||||||
{
|
{
|
||||||
plugins = NULL;
|
plugins = NULL;
|
||||||
PyObject *p_module;
|
PyObject *p_module;
|
||||||
@ -88,7 +88,7 @@ api_init(void)
|
|||||||
}
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
api_shutdown(void)
|
plugins_shutdown(void)
|
||||||
{
|
{
|
||||||
Py_Finalize();
|
Py_Finalize();
|
||||||
}
|
}
|
@ -1,5 +1,5 @@
|
|||||||
/*
|
/*
|
||||||
* api.h
|
* plugins.h
|
||||||
*
|
*
|
||||||
* Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
|
* Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
|
||||||
*
|
*
|
||||||
@ -20,11 +20,13 @@
|
|||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#ifndef API_H
|
#ifndef PLUGINS_H
|
||||||
#define API_H
|
#define PLUGINS_H
|
||||||
|
|
||||||
|
void plugins_init(void);
|
||||||
|
|
||||||
void api_init(void);
|
|
||||||
void plugins_on_connect(void);
|
void plugins_on_connect(void);
|
||||||
void api_shutdown(void);
|
|
||||||
|
void plugins_shutdown(void);
|
||||||
|
|
||||||
#endif
|
#endif
|
@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
#include "profanity.h"
|
#include "profanity.h"
|
||||||
|
|
||||||
#include "plugins/api.h"
|
#include "plugins/plugins.h"
|
||||||
#include "chat_session.h"
|
#include "chat_session.h"
|
||||||
#include "config/accounts.h"
|
#include "config/accounts.h"
|
||||||
#include "config/preferences.h"
|
#include "config/preferences.h"
|
||||||
@ -635,7 +635,7 @@ _init(const int disable_tls, char *log_level)
|
|||||||
roster_init();
|
roster_init();
|
||||||
muc_init();
|
muc_init();
|
||||||
atexit(_shutdown);
|
atexit(_shutdown);
|
||||||
api_init();
|
plugins_init();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
@ -652,7 +652,7 @@ _shutdown(void)
|
|||||||
accounts_close();
|
accounts_close();
|
||||||
cmd_close();
|
cmd_close();
|
||||||
log_close();
|
log_close();
|
||||||
api_shutdown();
|
plugins_shutdown();
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
Loading…
Reference in New Issue
Block a user