aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheJackiMonster <thejackimonster@gmail.com>2022-12-16 17:05:58 +0100
committerTheJackiMonster <thejackimonster@gmail.com>2022-12-16 17:05:58 +0100
commit039a8ce9c56a327d3740134b455b8516bbabb253 (patch)
tree0301ff797d6c9f249e29e117f7e24e74aa0504da
parentc2e206fa060d43bae5b5684e4b33f301091accb1 (diff)
downloadlibgnunetchat-039a8ce9c56a327d3740134b455b8516bbabb253.tar.gz
libgnunetchat-039a8ce9c56a327d3740134b455b8516bbabb253.zip
Fix more issues with headers
Signed-off-by: TheJackiMonster <thejackimonster@gmail.com>
-rw-r--r--include/gnunet/gnunet_chat_lib.h3
-rw-r--r--src/gnunet_chat_account.h3
-rw-r--r--src/gnunet_chat_contact.h2
-rw-r--r--src/gnunet_chat_context.h3
-rw-r--r--src/gnunet_chat_file.h2
-rw-r--r--src/gnunet_chat_group.h2
-rw-r--r--src/gnunet_chat_handle.h3
-rw-r--r--src/gnunet_chat_invitation.h2
-rw-r--r--src/gnunet_chat_lib.c3
-rw-r--r--src/gnunet_chat_lobby.h2
-rw-r--r--src/gnunet_chat_message.h2
-rw-r--r--src/gnunet_chat_uri.h2
-rw-r--r--src/gnunet_chat_util.c7
-rw-r--r--src/gnunet_chat_util.h2
14 files changed, 7 insertions, 31 deletions
diff --git a/include/gnunet/gnunet_chat_lib.h b/include/gnunet/gnunet_chat_lib.h
index 1f94391..d6ad718 100644
--- a/include/gnunet/gnunet_chat_lib.h
+++ b/include/gnunet/gnunet_chat_lib.h
@@ -34,9 +34,6 @@
34 */ 34 */
35/**@{*/ 35/**@{*/
36 36
37#include <gnunet/platform.h>
38#include <gnunet/gnunet_common.h>
39#include <gnunet/gnunet_time_lib.h>
40#include <gnunet/gnunet_util_lib.h> 37#include <gnunet/gnunet_util_lib.h>
41 38
42/** 39/**
diff --git a/src/gnunet_chat_account.h b/src/gnunet_chat_account.h
index 45ca869..25d7598 100644
--- a/src/gnunet_chat_account.h
+++ b/src/gnunet_chat_account.h
@@ -25,9 +25,8 @@
25#ifndef GNUNET_CHAT_ACCOUNT_H_ 25#ifndef GNUNET_CHAT_ACCOUNT_H_
26#define GNUNET_CHAT_ACCOUNT_H_ 26#define GNUNET_CHAT_ACCOUNT_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_identity_service.h> 28#include <gnunet/gnunet_identity_service.h>
29#include <gnunet/gnunet_util_lib.h>
31 30
32struct GNUNET_CHAT_Account 31struct GNUNET_CHAT_Account
33{ 32{
diff --git a/src/gnunet_chat_contact.h b/src/gnunet_chat_contact.h
index 54918cc..41b793c 100644
--- a/src/gnunet_chat_contact.h
+++ b/src/gnunet_chat_contact.h
@@ -25,8 +25,6 @@
25#ifndef GNUNET_CHAT_CONTACT_H_ 25#ifndef GNUNET_CHAT_CONTACT_H_
26#define GNUNET_CHAT_CONTACT_H_ 26#define GNUNET_CHAT_CONTACT_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_messenger_service.h> 28#include <gnunet/gnunet_messenger_service.h>
31#include <gnunet/gnunet_util_lib.h> 29#include <gnunet/gnunet_util_lib.h>
32 30
diff --git a/src/gnunet_chat_context.h b/src/gnunet_chat_context.h
index 3b6e1bb..6d192dd 100644
--- a/src/gnunet_chat_context.h
+++ b/src/gnunet_chat_context.h
@@ -25,9 +25,6 @@
25#ifndef GNUNET_CHAT_CONTEXT_H_ 25#ifndef GNUNET_CHAT_CONTEXT_H_
26#define GNUNET_CHAT_CONTEXT_H_ 26#define GNUNET_CHAT_CONTEXT_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_configuration_lib.h>
31#include <gnunet/gnunet_gnsrecord_lib.h> 28#include <gnunet/gnunet_gnsrecord_lib.h>
32#include <gnunet/gnunet_messenger_service.h> 29#include <gnunet/gnunet_messenger_service.h>
33#include <gnunet/gnunet_util_lib.h> 30#include <gnunet/gnunet_util_lib.h>
diff --git a/src/gnunet_chat_file.h b/src/gnunet_chat_file.h
index 4a6bcd3..f41852c 100644
--- a/src/gnunet_chat_file.h
+++ b/src/gnunet_chat_file.h
@@ -25,8 +25,6 @@
25#ifndef GNUNET_CHAT_FILE_H_ 25#ifndef GNUNET_CHAT_FILE_H_
26#define GNUNET_CHAT_FILE_H_ 26#define GNUNET_CHAT_FILE_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_fs_service.h> 28#include <gnunet/gnunet_fs_service.h>
31#include <gnunet/gnunet_messenger_service.h> 29#include <gnunet/gnunet_messenger_service.h>
32#include <gnunet/gnunet_util_lib.h> 30#include <gnunet/gnunet_util_lib.h>
diff --git a/src/gnunet_chat_group.h b/src/gnunet_chat_group.h
index e3f7b6d..a48fb2f 100644
--- a/src/gnunet_chat_group.h
+++ b/src/gnunet_chat_group.h
@@ -25,8 +25,6 @@
25#ifndef GNUNET_CHAT_GROUP_H_ 25#ifndef GNUNET_CHAT_GROUP_H_
26#define GNUNET_CHAT_GROUP_H_ 26#define GNUNET_CHAT_GROUP_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_regex_service.h> 28#include <gnunet/gnunet_regex_service.h>
31#include <gnunet/gnunet_util_lib.h> 29#include <gnunet/gnunet_util_lib.h>
32 30
diff --git a/src/gnunet_chat_handle.h b/src/gnunet_chat_handle.h
index 100140b..0ceb40f 100644
--- a/src/gnunet_chat_handle.h
+++ b/src/gnunet_chat_handle.h
@@ -25,9 +25,6 @@
25#ifndef GNUNET_CHAT_HANDLE_H_ 25#ifndef GNUNET_CHAT_HANDLE_H_
26#define GNUNET_CHAT_HANDLE_H_ 26#define GNUNET_CHAT_HANDLE_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_config.h>
31#include <gnunet/gnunet_arm_service.h> 28#include <gnunet/gnunet_arm_service.h>
32#include <gnunet/gnunet_fs_service.h> 29#include <gnunet/gnunet_fs_service.h>
33#include <gnunet/gnunet_gns_service.h> 30#include <gnunet/gnunet_gns_service.h>
diff --git a/src/gnunet_chat_invitation.h b/src/gnunet_chat_invitation.h
index ff5ebc7..73bd886 100644
--- a/src/gnunet_chat_invitation.h
+++ b/src/gnunet_chat_invitation.h
@@ -25,8 +25,6 @@
25#ifndef GNUNET_CHAT_INVITATION_H_ 25#ifndef GNUNET_CHAT_INVITATION_H_
26#define GNUNET_CHAT_INVITATION_H_ 26#define GNUNET_CHAT_INVITATION_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_messenger_service.h> 28#include <gnunet/gnunet_messenger_service.h>
31#include <gnunet/gnunet_util_lib.h> 29#include <gnunet/gnunet_util_lib.h>
32 30
diff --git a/src/gnunet_chat_lib.c b/src/gnunet_chat_lib.c
index 640f70e..111bfd8 100644
--- a/src/gnunet_chat_lib.c
+++ b/src/gnunet_chat_lib.c
@@ -24,9 +24,12 @@
24 24
25#include "gnunet_chat_lib.h" 25#include "gnunet_chat_lib.h"
26 26
27#include <libgen.h>
27#include <limits.h> 28#include <limits.h>
28#include <strings.h> 29#include <strings.h>
29 30
31#define _(String) ((const char*) String)
32
30#include "gnunet_chat_contact.h" 33#include "gnunet_chat_contact.h"
31#include "gnunet_chat_context.h" 34#include "gnunet_chat_context.h"
32#include "gnunet_chat_file.h" 35#include "gnunet_chat_file.h"
diff --git a/src/gnunet_chat_lobby.h b/src/gnunet_chat_lobby.h
index 3a55b42..c1194bc 100644
--- a/src/gnunet_chat_lobby.h
+++ b/src/gnunet_chat_lobby.h
@@ -25,8 +25,6 @@
25#ifndef GNUNET_CHAT_LOBBY_H_ 25#ifndef GNUNET_CHAT_LOBBY_H_
26#define GNUNET_CHAT_LOBBY_H_ 26#define GNUNET_CHAT_LOBBY_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_identity_service.h> 28#include <gnunet/gnunet_identity_service.h>
31#include <gnunet/gnunet_util_lib.h> 29#include <gnunet/gnunet_util_lib.h>
32 30
diff --git a/src/gnunet_chat_message.h b/src/gnunet_chat_message.h
index 3ea7283..68b4697 100644
--- a/src/gnunet_chat_message.h
+++ b/src/gnunet_chat_message.h
@@ -25,8 +25,6 @@
25#ifndef GNUNET_CHAT_MESSAGE_H_ 25#ifndef GNUNET_CHAT_MESSAGE_H_
26#define GNUNET_CHAT_MESSAGE_H_ 26#define GNUNET_CHAT_MESSAGE_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_messenger_service.h> 28#include <gnunet/gnunet_messenger_service.h>
31#include <gnunet/gnunet_util_lib.h> 29#include <gnunet/gnunet_util_lib.h>
32 30
diff --git a/src/gnunet_chat_uri.h b/src/gnunet_chat_uri.h
index a79f02a..ee533b5 100644
--- a/src/gnunet_chat_uri.h
+++ b/src/gnunet_chat_uri.h
@@ -25,8 +25,6 @@
25#ifndef GNUNET_CHAT_URI_H_ 25#ifndef GNUNET_CHAT_URI_H_
26#define GNUNET_CHAT_URI_H_ 26#define GNUNET_CHAT_URI_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_identity_service.h> 28#include <gnunet/gnunet_identity_service.h>
31#include <gnunet/gnunet_util_lib.h> 29#include <gnunet/gnunet_util_lib.h>
32 30
diff --git a/src/gnunet_chat_util.c b/src/gnunet_chat_util.c
index a017b26..bdc5e18 100644
--- a/src/gnunet_chat_util.c
+++ b/src/gnunet_chat_util.c
@@ -24,6 +24,7 @@
24 24
25#include "gnunet_chat_util.h" 25#include "gnunet_chat_util.h"
26 26
27
27void 28void
28util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member, 29util_shorthash_from_member (const struct GNUNET_MESSENGER_Contact *member,
29 struct GNUNET_ShortHashCode *shorthash) 30 struct GNUNET_ShortHashCode *shorthash)
@@ -268,9 +269,8 @@ util_get_dirname (const char *directory,
268 269
269 return GNUNET_asprintf ( 270 return GNUNET_asprintf (
270 filename, 271 filename,
271 "%s%c%s", 272 "%s/%s",
272 directory, 273 directory,
273 DIR_SEPARATOR,
274 subdir 274 subdir
275 ); 275 );
276} 276}
@@ -291,9 +291,8 @@ util_get_filename (const char *directory,
291 291
292 int result = GNUNET_asprintf ( 292 int result = GNUNET_asprintf (
293 filename, 293 filename,
294 "%s%c%s", 294 "%s/%s",
295 dirname, 295 dirname,
296 DIR_SEPARATOR,
297 GNUNET_h2s_full(hash) 296 GNUNET_h2s_full(hash)
298 ); 297 );
299 298
diff --git a/src/gnunet_chat_util.h b/src/gnunet_chat_util.h
index 80cd81b..9e22439 100644
--- a/src/gnunet_chat_util.h
+++ b/src/gnunet_chat_util.h
@@ -25,8 +25,6 @@
25#ifndef GNUNET_CHAT_UTIL_H_ 25#ifndef GNUNET_CHAT_UTIL_H_
26#define GNUNET_CHAT_UTIL_H_ 26#define GNUNET_CHAT_UTIL_H_
27 27
28#include <gnunet/platform.h>
29#include <gnunet/gnunet_common.h>
30#include <gnunet/gnunet_messenger_service.h> 28#include <gnunet/gnunet_messenger_service.h>
31#include <gnunet/gnunet_util_lib.h> 29#include <gnunet/gnunet_util_lib.h>
32 30