1
0
mirror of https://github.com/profanity-im/profanity.git synced 2024-09-22 19:45:54 -04:00

Added command and tools subdirs to source

This commit is contained in:
James Booth 2013-02-02 21:43:59 +00:00
parent fc5bfb7d33
commit 740e5b4228
21 changed files with 86 additions and 26 deletions

View File

@ -1,18 +1,22 @@
bin_PROGRAMS = profanity
profanity_SOURCES = src/command.c src/contact.c src/command_history.c \
src/preferences.c src/autocomplete.c src/command.h src/contact.h \
src/log.c src/preferences.h src/autocomplete.h src/common.c \
src/contact_list.c src/log.h src/profanity.c src/history.c src/common.h \
src/contact_list.h src/main.c src/profanity.h src/history.h src/tinyurl.c \
src/tinyurl.h src/chat_session.c src/chat_session.h src/muc.c src/muc.h \
src/command_parser.c src/theme.c src/theme.h src/files.c src/files.h \
src/accounts.c src/accounts.h src/jid.h src/jid.c \
profanity_SOURCES = src/contact.c src/preferences.c src/contact.h src/log.c \
src/preferences.h src/common.c src/contact_list.c src/log.h \
src/profanity.c src/common.h src/contact_list.h src/main.c \
src/profanity.h src/chat_session.c src/chat_session.h src/muc.c src/muc.h \
src/theme.c src/theme.h src/files.c src/files.h src/accounts.c \
src/accounts.h src/jid.h src/jid.c \
src/xmpp/xmpp.h src/xmpp/capabilities.c src/xmpp/connection.c \
src/xmpp/iq.c src/xmpp/message.c src/xmpp/presence.c src/xmpp/stanza.c \
src/xmpp/stanza.h src/xmpp/message.h src/xmpp/iq.h src/xmpp/presence.h \
src/xmpp/capabilities.h \
src/ui/ui.h src/ui/window.c src/ui/window.h src/ui/windows.c \
src/ui/titlebar.c src/ui/statusbar.c src/ui/inputwin.c
src/ui/titlebar.c src/ui/statusbar.c src/ui/inputwin.c \
src/command/command.h src/command/command.c src/command/history.c \
src/command/history.h src/command/parser.c \
src/command/parser.h \
src/tools/autocomplete.c src/tools/autocomplete.h \
src/tools/history.c src/tools/history.h \
src/tools/tinyurl.c src/tools/tinyurl.h
TESTS = tests/testsuite
check_PROGRAMS = tests/testsuite

View File

@ -27,11 +27,11 @@
#include "accounts.h"
#include "autocomplete.h"
#include "common.h"
#include "files.h"
#include "jid.h"
#include "log.h"
#include "tools/autocomplete.h"
#include "xmpp/xmpp.h"
static gchar *accounts_loc;

View File

@ -27,11 +27,11 @@
#include <glib.h>
#include "command.h"
#include "accounts.h"
#include "autocomplete.h"
#include "chat_session.h"
#include "command/command.h"
#include "command/history.h"
#include "command/parser.h"
#include "common.h"
#include "contact.h"
#include "contact_list.h"
@ -41,7 +41,8 @@
#include "preferences.h"
#include "profanity.h"
#include "theme.h"
#include "tinyurl.h"
#include "tools/autocomplete.h"
#include "tools/tinyurl.h"
#include "ui/ui.h"
#include "xmpp/xmpp.h"

View File

@ -45,12 +45,8 @@ GSList * cmd_get_basic_help(void);
GSList * cmd_get_settings_help(void);
GSList * cmd_get_presence_help(void);
void cmd_history_init(void);
void cmd_history_append(char *inp);
char *cmd_history_previous(char *inp, int *size);
char *cmd_history_next(char *inp, int *size);
gchar** parse_args(const char * const inp, int min, int max);
gchar** parse_args_with_freetext(const char * const inp, int min, int max);
#endif

View File

@ -20,7 +20,7 @@
*
*/
#include "history.h"
#include "tools/history.h"
#define MAX_HISTORY 100

28
src/command/history.h Normal file
View File

@ -0,0 +1,28 @@
/*
* command_history.h
*
* Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
*
* This file is part of Profanity.
*
* Profanity is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Profanity is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Profanity. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef COMMAND_HISTORY_H
#define COMMAND_HISTORY_H
void cmd_history_init(void);
#endif

31
src/command/parser.h Normal file
View File

@ -0,0 +1,31 @@
/*
* parser.h
*
* Copyright (C) 2012, 2013 James Booth <boothj5@gmail.com>
*
* This file is part of Profanity.
*
* Profanity is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* Profanity is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with Profanity. If not, see <http://www.gnu.org/licenses/>.
*
*/
#ifndef PARSER_H
#define PARSER_H
#include <glib.h>
gchar** parse_args(const char * const inp, int min, int max);
gchar** parse_args_with_freetext(const char * const inp, int min, int max);
#endif

View File

@ -24,8 +24,8 @@
#include <glib.h>
#include "autocomplete.h"
#include "contact.h"
#include "tools/autocomplete.h"
static Autocomplete ac;
static GHashTable *contacts;

View File

@ -25,9 +25,9 @@
#include <glib.h>
#include "autocomplete.h"
#include "contact.h"
#include "jid.h"
#include "tools/autocomplete.h"
typedef struct _muc_room_t {
char *room; // e.g. test@conference.server

View File

@ -25,9 +25,9 @@
#include <glib.h>
#include "autocomplete.h"
#include "contact.h"
#include "jid.h"
#include "tools/autocomplete.h"
void muc_join_room(const char * const room, const char * const nick);
void muc_leave_room(const char * const room);

View File

@ -34,9 +34,9 @@
#include "preferences.h"
#include "autocomplete.h"
#include "files.h"
#include "log.h"
#include "tools/autocomplete.h"
static gchar *prefs_loc;
static GKeyFile *prefs;

View File

@ -33,7 +33,7 @@
#include "accounts.h"
#include "chat_session.h"
#include "command.h"
#include "command/command.h"
#include "common.h"
#include "contact.h"
#include "contact_list.h"

View File

@ -33,7 +33,7 @@
#include <ncurses.h>
#endif
#include "command.h"
#include "command/command.h"
#include "common.h"
#include "contact_list.h"
#include "log.h"

View File

@ -41,7 +41,7 @@
#endif
#include "chat_session.h"
#include "command.h"
#include "command/command.h"
#include "common.h"
#include "contact.h"
#include "contact_list.h"