From e5cc589a0f0f3431d289d7d7fa0c40157e49373c Mon Sep 17 00:00:00 2001 From: vysheng Date: Wed, 23 Oct 2013 18:26:17 +0400 Subject: [PATCH] Added GPL-headers to source files --- constants.h | 18 ++++++++++++++++++ include.h | 18 ++++++++++++++++++ interface.c | 19 +++++++++++++++++++ interface.h | 18 ++++++++++++++++++ loop.c | 18 ++++++++++++++++++ loop.h | 18 ++++++++++++++++++ main.c | 30 ++++++++++++++++-------------- mtproto-client.c | 19 +++++++++++++++++++ mtproto-client.h | 19 +++++++++++++++++++ mtproto-common.c | 19 +++++++++++++++++++ mtproto-common.h | 19 +++++++++++++++++++ net.c | 18 ++++++++++++++++++ net.h | 18 ++++++++++++++++++ queries.c | 18 ++++++++++++++++++ queries.h | 18 ++++++++++++++++++ structures.c | 18 ++++++++++++++++++ structures.h | 18 ++++++++++++++++++ telegram.h | 18 ++++++++++++++++++ tree.h | 18 ++++++++++++++++++ 19 files changed, 345 insertions(+), 14 deletions(-) diff --git a/constants.h b/constants.h index 2719d44..ac6b3da 100644 --- a/constants.h +++ b/constants.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #ifndef CONSTANTS_H #define CONSTANTS_H #define CODE_bool_false 0xbc799737 diff --git a/include.h b/include.h index 03f271d..bf290a1 100644 --- a/include.h +++ b/include.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #ifndef __INCLUDE_H__ #define __INCLUDE_H__ diff --git a/interface.c b/interface.c index c9ac77c..548806f 100644 --- a/interface.c +++ b/interface.c @@ -1,3 +1,22 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ + #define _GNU_SOURCE #include #include diff --git a/interface.h b/interface.h index e714725..eac0fff 100644 --- a/interface.h +++ b/interface.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #ifndef __INTERFACE_H__ #define __INTERFACE_H__ diff --git a/loop.c b/loop.c index ffe5646..66836f7 100644 --- a/loop.c +++ b/loop.c @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #define READLINE_CALLBACKS #include diff --git a/loop.h b/loop.h index 88b38ee..2b14f33 100644 --- a/loop.h +++ b/loop.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #ifndef __LOOP_H__ #define __LOOP_H__ int loop (void); diff --git a/main.c b/main.c index 5d5c557..60b96d1 100644 --- a/main.c +++ b/main.c @@ -1,19 +1,21 @@ -/* - main.c: main initialization file - - This program 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 2, or (at - your option) any later version. +/* + This file is part of telegram-client. - This program 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. + Telegram-client 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 2 of the License, or + (at your option) any later version. - You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #include #include diff --git a/mtproto-client.c b/mtproto-client.c index 53a3d9b..f9ac832 100644 --- a/mtproto-client.c +++ b/mtproto-client.c @@ -1,3 +1,22 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Nikolay Durov, Andrey Lopatin 2012-2013 + Copyright Vitaly Valtman 2013 +*/ #define _FILE_OFFSET_BITS 64 #include diff --git a/mtproto-client.h b/mtproto-client.h index 200e128..3958b4e 100644 --- a/mtproto-client.h +++ b/mtproto-client.h @@ -1,3 +1,22 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Nikolay Durov, Andrey Lopatin 2012-2013 + Copyright Vitaly Valtman 2013 +*/ #ifndef __MTPROTO_CLIENT_H__ #define __MTPROTO_CLIENT_H__ #include "net.h" diff --git a/mtproto-common.c b/mtproto-common.c index 3a0c5a1..64f635a 100644 --- a/mtproto-common.c +++ b/mtproto-common.c @@ -1,3 +1,22 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Nikolay Durov, Andrey Lopatin 2012-2013 + Copyright Vitaly Valtman 2013 +*/ #define _FILE_OFFSET_BITS 64 #include diff --git a/mtproto-common.h b/mtproto-common.h index 9ac4396..0c1012f 100644 --- a/mtproto-common.h +++ b/mtproto-common.h @@ -1,3 +1,22 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Nikolay Durov, Andrey Lopatin 2012-2013 + Copyright Vitaly Valtman 2013 +*/ #ifndef __MTPROTO_COMMON_H__ #define __MTPROTO_COMMON_H__ diff --git a/net.c b/net.c index 8e44e17..f806a38 100644 --- a/net.c +++ b/net.c @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #define _GNU_SOURCE #include #include diff --git a/net.h b/net.h index e934920..06633e8 100644 --- a/net.h +++ b/net.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #ifndef __NET_H__ #define __NET_H__ diff --git a/queries.c b/queries.c index a647c0e..d73393e 100644 --- a/queries.c +++ b/queries.c @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #define _FILE_OFFSET_BITS 64 #include #include diff --git a/queries.h b/queries.h index ca10ba2..7a9ef52 100644 --- a/queries.h +++ b/queries.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #include "net.h" #ifndef __QUERIES_H__ #define __QUERIES_H__ diff --git a/structures.c b/structures.c index 3257a57..f4c53fc 100644 --- a/structures.c +++ b/structures.c @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #include #include "structures.h" #include "mtproto-common.h" diff --git a/structures.h b/structures.h index bc6e3c3..db535cb 100644 --- a/structures.h +++ b/structures.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #ifndef __STRUCTURES_H__ #define __STRUCTURES_H__ diff --git a/telegram.h b/telegram.h index d285b5c..b5ea029 100644 --- a/telegram.h +++ b/telegram.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #define MAX_DC_NUM 9 #define MAX_USER_NUM 1000 #define MAX_CHAT_NUM 1000 diff --git a/tree.h b/tree.h index 250b060..04710f8 100644 --- a/tree.h +++ b/tree.h @@ -1,3 +1,21 @@ +/* + This file is part of telegram-client. + + Telegram-client 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 2 of the License, or + (at your option) any later version. + + Telegram-client 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 this telegram-client. If not, see . + + Copyright Vitaly Valtman 2013 +*/ #ifndef __TREE_H__ #define __TREE_H__ #include