diff options
author | Christian Grothoff <christian@grothoff.org> | 2009-09-14 07:28:56 +0000 |
---|---|---|
committer | Christian Grothoff <christian@grothoff.org> | 2009-09-14 07:28:56 +0000 |
commit | 2539b4aa84fa51da71cf51c9fd9ac1a7668f27b3 (patch) | |
tree | 6af6717a63287de6ebdce13be05c90d05925e8e8 /src/include | |
parent | 4f9c5b5e32036640242214989009a249771bc537 (diff) | |
download | gnunet-2539b4aa84fa51da71cf51c9fd9ac1a7668f27b3.tar.gz gnunet-2539b4aa84fa51da71cf51c9fd9ac1a7668f27b3.zip |
fs hacking
Diffstat (limited to 'src/include')
-rw-r--r-- | src/include/gnunet_bio_lib.h | 2 | ||||
-rw-r--r-- | src/include/gnunet_constants.h | 11 | ||||
-rw-r--r-- | src/include/gnunet_core_service.h | 3 | ||||
-rw-r--r-- | src/include/gnunet_protocols.h | 12 |
4 files changed, 26 insertions, 2 deletions
diff --git a/src/include/gnunet_bio_lib.h b/src/include/gnunet_bio_lib.h index 2765b4695..2a2639f05 100644 --- a/src/include/gnunet_bio_lib.h +++ b/src/include/gnunet_bio_lib.h | |||
@@ -88,7 +88,7 @@ int GNUNET_BIO_read (struct GNUNET_BIO_ReadHandle *h, | |||
88 | * @param maxLen maximum allowed length for the string | 88 | * @param maxLen maximum allowed length for the string |
89 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure | 89 | * @return GNUNET_OK on success, GNUNET_SYSERR on failure |
90 | */ | 90 | */ |
91 | int GNUNET_BIO_read_string (struct GNUNET_BIO_ReadHandle *h, | 91 | int GNUNET_BIO_read_string (struct GNUNET_BIO_ReadHandle *h, |
92 | const char *what, | 92 | const char *what, |
93 | char **result, | 93 | char **result, |
94 | size_t maxLen); | 94 | size_t maxLen); |
diff --git a/src/include/gnunet_constants.h b/src/include/gnunet_constants.h index bb122eb64..eb8addf5f 100644 --- a/src/include/gnunet_constants.h +++ b/src/include/gnunet_constants.h | |||
@@ -63,6 +63,17 @@ extern "C" | |||
63 | #define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 10) | 63 | #define GNUNET_CONSTANTS_SERVICE_TIMEOUT GNUNET_TIME_relative_multiply (GNUNET_TIME_UNIT_MINUTES, 10) |
64 | 64 | ||
65 | 65 | ||
66 | /** | ||
67 | * Until which load do we consider the peer overly idle | ||
68 | * (which means that we would like to use more resources).<p> | ||
69 | * | ||
70 | * Note that we use 70 to leave some room for applications | ||
71 | * to consume resources "idly" (i.e. up to 85%) and then | ||
72 | * still have some room for "paid for" resource consumption. | ||
73 | */ | ||
74 | #define GNUNET_CONSTANTS_IDLE_LOAD_THRESHOLD 70 | ||
75 | |||
76 | |||
66 | #if 0 /* keep Emacsens' auto-indent happy */ | 77 | #if 0 /* keep Emacsens' auto-indent happy */ |
67 | { | 78 | { |
68 | #endif | 79 | #endif |
diff --git a/src/include/gnunet_core_service.h b/src/include/gnunet_core_service.h index 5d08552f4..b5dceca3a 100644 --- a/src/include/gnunet_core_service.h +++ b/src/include/gnunet_core_service.h | |||
@@ -77,7 +77,8 @@ typedef unsigned int | |||
77 | (*GNUNET_CORE_BufferFillCallback) (void *cls, | 77 | (*GNUNET_CORE_BufferFillCallback) (void *cls, |
78 | const struct GNUNET_PeerIdentity * | 78 | const struct GNUNET_PeerIdentity * |
79 | receiver, | 79 | receiver, |
80 | void *position, unsigned int padding); | 80 | void *position, |
81 | size_t padding); | ||
81 | 82 | ||
82 | 83 | ||
83 | /** | 84 | /** |
diff --git a/src/include/gnunet_protocols.h b/src/include/gnunet_protocols.h index 664b10636..ff35c6b97 100644 --- a/src/include/gnunet_protocols.h +++ b/src/include/gnunet_protocols.h | |||
@@ -420,6 +420,18 @@ extern "C" | |||
420 | */ | 420 | */ |
421 | #define GNUNET_MESSAGE_TYPE_FS_CONTENT 137 | 421 | #define GNUNET_MESSAGE_TYPE_FS_CONTENT 137 |
422 | 422 | ||
423 | /** | ||
424 | * P2P request for content (one FS to another). | ||
425 | */ | ||
426 | #define GNUNET_MESSAGE_TYPE_FS_GET 138 | ||
427 | |||
428 | |||
429 | /** | ||
430 | * P2P response with content or active | ||
431 | * migration of content. | ||
432 | */ | ||
433 | #define GNUNET_MESSAGE_TYPE_FS_PUT 139 | ||
434 | |||
423 | /* | 435 | /* |
424 | TODO: | 436 | TODO: |
425 | - DV | 437 | - DV |