From b6613a015fce3213362b5a7fe9a636fd799f8a3b Mon Sep 17 00:00:00 2001 From: Jfreegman Date: Tue, 25 Feb 2014 02:28:24 -0500 Subject: [PATCH] add license info to source files --- src/chat.c | 22 ++++++++++++++++++++-- src/chat.h | 22 ++++++++++++++++++++++ src/chat_commands.c | 22 ++++++++++++++++++++-- src/chat_commands.h | 22 ++++++++++++++++++++-- src/configdir.c | 14 ++++++++------ src/configdir.h | 14 ++++++++------ src/execute.c | 22 ++++++++++++++++++++-- src/execute.h | 22 ++++++++++++++++++++-- src/friendlist.c | 22 ++++++++++++++++++++-- src/friendlist.h | 22 ++++++++++++++++++++++ src/global_commands.c | 22 ++++++++++++++++++++-- src/global_commands.h | 22 ++++++++++++++++++++-- src/groupchat.c | 22 ++++++++++++++++++++-- src/groupchat.h | 22 ++++++++++++++++++++-- src/main.c | 29 ++++++++++++++++++++++++----- src/misc_tools.c | 22 ++++++++++++++++++++-- src/misc_tools.h | 22 ++++++++++++++++++++-- src/prompt.c | 22 ++++++++++++++++++++-- src/prompt.h | 22 ++++++++++++++++++++-- src/toxic_strings.c | 22 ++++++++++++++++++++-- src/toxic_strings.h | 22 ++++++++++++++++++++-- src/toxic_windows.h | 22 ++++++++++++++++++++-- src/windows.c | 22 ++++++++++++++++++++++ 23 files changed, 446 insertions(+), 51 deletions(-) diff --git a/src/chat.c b/src/chat.c index 1bd192c..a4d782b 100644 --- a/src/chat.c +++ b/src/chat.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* chat.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifdef HAVE_CONFIG_H diff --git a/src/chat.h b/src/chat.h index a7918df..1801d10 100644 --- a/src/chat.h +++ b/src/chat.h @@ -1,3 +1,25 @@ +/* chat.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * + */ + #ifndef CHAT_H_6489PZ13 #define CHAT_H_6489PZ13 diff --git a/src/chat_commands.c b/src/chat_commands.c index 8a9505a..9fdedb3 100644 --- a/src/chat_commands.c +++ b/src/chat_commands.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* chat_commands.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifdef HAVE_CONFIG_H diff --git a/src/chat_commands.h b/src/chat_commands.h index fd8059a..744af97 100644 --- a/src/chat_commands.h +++ b/src/chat_commands.h @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* chat_commands.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ void cmd_chat_help(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]); diff --git a/src/configdir.c b/src/configdir.c index 8f43bc9..d43b08c 100644 --- a/src/configdir.c +++ b/src/configdir.c @@ -1,20 +1,22 @@ -/* - * Copyright (C) 2013 Tox project All Rights Reserved. +/* configdir.c * - * This file is part of Tox. * - * Tox is free software: you can redistribute it and/or modify + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. * - * Tox is distributed in the hope that it will be useful, + * Toxic 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 Tox. If not, see . + * along with Toxic. If not, see . * */ diff --git a/src/configdir.h b/src/configdir.h index e886e53..6a1a7eb 100644 --- a/src/configdir.h +++ b/src/configdir.h @@ -1,20 +1,22 @@ -/* - * Copyright (C) 2013 Tox project All Rights Reserved. +/* configdir.h * - * This file is part of Tox. * - * Tox is free software: you can redistribute it and/or modify + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. * - * Tox is distributed in the hope that it will be useful, + * Toxic 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 Tox. If not, see . + * along with Toxic. If not, see . * */ diff --git a/src/execute.c b/src/execute.c index beac6bb..816ae7f 100644 --- a/src/execute.c +++ b/src/execute.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* execute.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #include diff --git a/src/execute.h b/src/execute.h index c720a33..e40f028 100644 --- a/src/execute.h +++ b/src/execute.h @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* execute.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #define MAX_NUM_ARGS 4 /* Includes command */ diff --git a/src/friendlist.c b/src/friendlist.c index 7e22091..d55c173 100644 --- a/src/friendlist.c +++ b/src/friendlist.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* friendlist.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifdef HAVE_CONFIG_H diff --git a/src/friendlist.h b/src/friendlist.h index 0f29f3c..a468273 100644 --- a/src/friendlist.h +++ b/src/friendlist.h @@ -1,3 +1,25 @@ +/* friendlist.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * + */ + #ifndef FRIENDLIST_H_53I41IM #define FRIENDLIST_H_53I41IM diff --git a/src/global_commands.c b/src/global_commands.c index 29af2d6..0649bac 100644 --- a/src/global_commands.c +++ b/src/global_commands.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* global_commands.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifdef HAVE_CONFIG_H diff --git a/src/global_commands.h b/src/global_commands.h index 57f16e3..ff64323 100644 --- a/src/global_commands.h +++ b/src/global_commands.h @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* global_commands.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ void cmd_accept(WINDOW *, ToxWindow *, Tox *, int argc, char (*argv)[MAX_STR_SIZE]); diff --git a/src/groupchat.c b/src/groupchat.c index 5b6d624..694a5d0 100644 --- a/src/groupchat.c +++ b/src/groupchat.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* groupchat.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifdef HAVE_CONFIG_H diff --git a/src/groupchat.h b/src/groupchat.h index a3aa0a7..b14efb7 100644 --- a/src/groupchat.h +++ b/src/groupchat.h @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* groupchat.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #define SIDEBAR_WIDTH 16 diff --git a/src/main.c b/src/main.c index 448e22b..4ddeb36 100644 --- a/src/main.c +++ b/src/main.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* main.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifdef HAVE_CONFIG_H @@ -47,8 +65,11 @@ /* Export for use in Callbacks */ char *DATA_FILE = NULL; char *SRVLIST_FILE = NULL; + ToxWindow *prompt = NULL; +static int f_loadfromfile; /* 1 if we want to load from/save the data file, 0 otherwise */ + FileSender file_senders[MAX_FILES]; uint8_t max_file_senders_index; @@ -277,8 +298,6 @@ static void do_connection(Tox *m, ToxWindow *prompt) } } -int f_loadfromfile; - /* * Store Messenger to given location * Return 0 stored successfully @@ -485,7 +504,7 @@ int main(int argc, char *argv[]) int i = 0; int f_use_ipv4 = 0; - // Make sure all written files are read/writeable only by the current user. + /* Make sure all written files are read/writeable only by the current user. */ umask(S_IRGRP | S_IWGRP | S_IROTH | S_IWOTH); for (i = 0; i < argc; ++i) { diff --git a/src/misc_tools.c b/src/misc_tools.c index 395a25b..a037c47 100644 --- a/src/misc_tools.c +++ b/src/misc_tools.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* misc_tools.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #include diff --git a/src/misc_tools.h b/src/misc_tools.h index 0aa203f..4d711e9 100644 --- a/src/misc_tools.h +++ b/src/misc_tools.h @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* misc_tools.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #define MIN(x, y) (((x) < (y)) ? (x) : (y)) diff --git a/src/prompt.c b/src/prompt.c index 6d0a238..ca30e32 100644 --- a/src/prompt.c +++ b/src/prompt.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* prompt.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifdef HAVE_CONFIG_H diff --git a/src/prompt.h b/src/prompt.h index 7652503..96ca08a 100644 --- a/src/prompt.h +++ b/src/prompt.h @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* prompt.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifndef PROMPT_H_UZYGWFFL diff --git a/src/toxic_strings.c b/src/toxic_strings.c index 11d6ad0..78abaae 100644 --- a/src/toxic_strings.c +++ b/src/toxic_strings.c @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* toxic_strings.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #include diff --git a/src/toxic_strings.h b/src/toxic_strings.h index f97dd20..3e28c0f 100644 --- a/src/toxic_strings.h +++ b/src/toxic_strings.h @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* toxic_strings.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ /* Adds char to buffer at pos */ diff --git a/src/toxic_windows.h b/src/toxic_windows.h index eec6ca9..67b28f0 100644 --- a/src/toxic_windows.h +++ b/src/toxic_windows.h @@ -1,5 +1,23 @@ -/* - * Toxic -- Tox Curses Client +/* toxic_windows.h + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * */ #ifndef _windows_h diff --git a/src/windows.c b/src/windows.c index 326b659..018da54 100644 --- a/src/windows.c +++ b/src/windows.c @@ -1,3 +1,25 @@ +/* windows.c + * + * + * Copyright (C) 2014 Toxic All Rights Reserved. + * + * This file is part of Toxic. + * + * Toxic 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. + * + * Toxic 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 Toxic. If not, see . + * + */ + #ifdef HAVE_CONFIG_H #include "config.h" #endif