diff options
author | qorg11 <qorg@vxempire.xyz> | 2021-06-29 14:34:02 +0200 |
---|---|---|
committer | qorg11 <qorg@vxempire.xyz> | 2021-06-29 14:34:02 +0200 |
commit | 1b7402ee3f1b8034458b63ae8c47334c3d49f0e5 (patch) | |
tree | 3aae1d442c329cb5478b6006991327d5348409c9 | |
parent | d7b6807fab6f2d0ee4a0ac3ba40ed581bf1b9600 (diff) | |
download | demiurge-1b7402ee3f1b8034458b63ae8c47334c3d49f0e5.tar.gz demiurge-1b7402ee3f1b8034458b63ae8c47334c3d49f0e5.zip |
Fulfill Richard Stallman's demands
-rw-r--r-- | src/asprintf.c | 17 | ||||
-rw-r--r-- | src/asprintf.h | 22 | ||||
-rw-r--r-- | src/config.h | 17 | ||||
-rw-r--r-- | src/login.c | 17 | ||||
-rw-r--r-- | src/login.h | 20 | ||||
-rw-r--r-- | src/main.c | 17 | ||||
-rw-r--r-- | src/post.c | 17 | ||||
-rw-r--r-- | src/post.h | 17 | ||||
-rw-r--r-- | src/upload_file.c | 17 | ||||
-rw-r--r-- | src/upload_file.h | 17 | ||||
-rw-r--r-- | src/util.c | 17 | ||||
-rw-r--r-- | src/util.h | 27 |
12 files changed, 215 insertions, 7 deletions
diff --git a/src/asprintf.c b/src/asprintf.c index 5120335..8026c52 100644 --- a/src/asprintf.c +++ b/src/asprintf.c @@ -1,3 +1,20 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + #include <stdio.h> #include <stdlib.h> #include <stdarg.h> diff --git a/src/asprintf.h b/src/asprintf.h index 54b6403..76f1f4f 100644 --- a/src/asprintf.h +++ b/src/asprintf.h @@ -1,8 +1,24 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + #include <stdarg.h> int -asprintf(char **restrict strp, const char *restrict fmt,... ); +asprintf(char **restrict strp, const char *restrict fmt, ...); int -vasprintf(char **restrict strp, const char *restrict fmt, - va_list ap); +vasprintf(char **restrict strp, const char *restrict fmt, va_list ap); diff --git a/src/config.h b/src/config.h index d4f440b..c6fe1ee 100644 --- a/src/config.h +++ b/src/config.h @@ -1,3 +1,20 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + /* Compilation options */ #define __USE_EDITLINE diff --git a/src/login.c b/src/login.c index 25e2f1c..66e9a9b 100644 --- a/src/login.c +++ b/src/login.c @@ -1,3 +1,20 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + #include "config.h" #include <stdio.h> #include <string.h> diff --git a/src/login.h b/src/login.h index 77cc39a..f2252d5 100644 --- a/src/login.h +++ b/src/login.h @@ -1 +1,19 @@ -int setup(); /* Log into the account */ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + +int +setup(); /* Log into the account */ @@ -1,3 +1,20 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + #include <stdio.h> #include <readline/readline.h> #include <unistd.h> @@ -1,3 +1,20 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + #include <stdio.h> #include <curl/curl.h> #include <string.h> @@ -1,2 +1,19 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + int post_status(const char *status, const char *scope, const char *media_id); diff --git a/src/upload_file.c b/src/upload_file.c index e64f450..01ec791 100644 --- a/src/upload_file.c +++ b/src/upload_file.c @@ -1,3 +1,20 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + #include <stdio.h> #include <stdlib.h> #include <curl/curl.h> diff --git a/src/upload_file.h b/src/upload_file.h index 5ac0cf0..50b3d28 100644 --- a/src/upload_file.h +++ b/src/upload_file.h @@ -1,2 +1,19 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + int upload_file(const char *path, const char *description, char **id_ptr); @@ -1,3 +1,20 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + #include <stdio.h> #include <string.h> #include <stdlib.h> @@ -1,15 +1,36 @@ +/* + This file is part of demiurge. + + demiurge 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. + + demiurge 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 demiurge. If not, see <https://www.gnu.org/licenses/>. +*/ + #include <stdlib.h> int -get_tokens_from_file(char *filename, char *instance,char *client_id, - char *client_secret, char *access_token); +get_tokens_from_file(char *filename, + char *instance, + char *client_id, + char *client_secret, + char *access_token); size_t write_data(void *buffer, size_t size, size_t nmemb, void *userp); void eputs(const char *s); -struct memory { +struct memory +{ char *response; size_t size; }; |