[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[gnunet] 02/40: NEWS: Added __attribute__((deprecated)) to the old trans
From: |
gnunet |
Subject: |
[gnunet] 02/40: NEWS: Added __attribute__((deprecated)) to the old transport API |
Date: |
Thu, 05 Oct 2023 08:57:05 +0200 |
This is an automated email from the git hooks/post-receive script.
martin-schanzenbach pushed a commit to branch master
in repository gnunet.
commit 01cf7af535c57b4cdfabbba09b1af21d5d3aafb5
Author: t3sserakt <t3ss@posteo.de>
AuthorDate: Wed Jun 7 14:26:26 2023 +0200
NEWS: Added __attribute__((deprecated)) to the old transport API
---
src/include/gnunet_ats_application_service.h | 14 ++++--
src/include/gnunet_ats_service.h | 65 ++++++++++++++++++----------
src/include/gnunet_ats_transport_service.h | 16 ++++---
src/include/gnunet_testing_ng_lib.h | 54 +++++++++++++++--------
src/include/gnunet_testing_plugin.h | 8 ++--
src/include/gnunet_transport_hello_service.h | 12 ++---
src/include/gnunet_transport_service.h | 65 +++++++++++++++-------------
7 files changed, 147 insertions(+), 87 deletions(-)
diff --git a/src/include/gnunet_ats_application_service.h
b/src/include/gnunet_ats_application_service.h
index da7fd4b52..77edbdf6c 100644
--- a/src/include/gnunet_ats_application_service.h
+++ b/src/include/gnunet_ats_application_service.h
@@ -55,7 +55,9 @@ struct GNUNET_ATS_ApplicationHandle;
* @return ats application handle, NULL on error
*/
struct GNUNET_ATS_ApplicationHandle *
-GNUNET_ATS_application_init (const struct GNUNET_CONFIGURATION_Handle *cfg);
+GNUNET_ATS_application_init (const struct
+ GNUNET_CONFIGURATION_Handle *cfg) __attribute__(
+ (deprecated));
/**
@@ -64,7 +66,9 @@ GNUNET_ATS_application_init (const struct
GNUNET_CONFIGURATION_Handle *cfg);
* @param ch handle to destroy
*/
void
-GNUNET_ATS_application_done (struct GNUNET_ATS_ApplicationHandle *ch);
+GNUNET_ATS_application_done (struct
+ GNUNET_ATS_ApplicationHandle *ch) __attribute__(
+ (deprecated));
/**
@@ -89,7 +93,8 @@ struct GNUNET_ATS_ApplicationSuggestHandle *
GNUNET_ATS_application_suggest (struct GNUNET_ATS_ApplicationHandle *ch,
const struct GNUNET_PeerIdentity *peer,
enum GNUNET_MQ_PreferenceKind pk,
- struct GNUNET_BANDWIDTH_Value32NBO bw);
+ struct GNUNET_BANDWIDTH_Value32NBO
+ bw) __attribute__((deprecated));
/**
@@ -99,7 +104,8 @@ GNUNET_ATS_application_suggest (struct
GNUNET_ATS_ApplicationHandle *ch,
*/
void
GNUNET_ATS_application_suggest_cancel (struct
- GNUNET_ATS_ApplicationSuggestHandle
*sh);
+ GNUNET_ATS_ApplicationSuggestHandle *sh)
+__attribute__((deprecated));
/** @} */ /* end of group */
diff --git a/src/include/gnunet_ats_service.h b/src/include/gnunet_ats_service.h
index ce149875a..1bf5d40b0 100644
--- a/src/include/gnunet_ats_service.h
+++ b/src/include/gnunet_ats_service.h
@@ -199,7 +199,9 @@ struct GNUNET_ATS_ConnectivitySuggestHandle;
* @return ats connectivity handle, NULL on error
*/
struct GNUNET_ATS_ConnectivityHandle *
-GNUNET_ATS_connectivity_init (const struct GNUNET_CONFIGURATION_Handle *cfg);
+GNUNET_ATS_connectivity_init (const struct
+ GNUNET_CONFIGURATION_Handle *cfg) __attribute__(
+ (deprecated));
/**
@@ -208,7 +210,9 @@ GNUNET_ATS_connectivity_init (const struct
GNUNET_CONFIGURATION_Handle *cfg);
* @param ch handle to destroy
*/
void
-GNUNET_ATS_connectivity_done (struct GNUNET_ATS_ConnectivityHandle *ch);
+GNUNET_ATS_connectivity_done (struct
+ GNUNET_ATS_ConnectivityHandle *ch) __attribute__(
+ (deprecated));
/**
@@ -223,7 +227,7 @@ GNUNET_ATS_connectivity_done (struct
GNUNET_ATS_ConnectivityHandle *ch);
struct GNUNET_ATS_ConnectivitySuggestHandle *
GNUNET_ATS_connectivity_suggest (struct GNUNET_ATS_ConnectivityHandle *ch,
const struct GNUNET_PeerIdentity *peer,
- uint32_t strength);
+ uint32_t strength)
__attribute__((deprecated));
/**
@@ -233,7 +237,8 @@ GNUNET_ATS_connectivity_suggest (struct
GNUNET_ATS_ConnectivityHandle *ch,
*/
void
GNUNET_ATS_connectivity_suggest_cancel (struct
- GNUNET_ATS_ConnectivitySuggestHandle
*sh);
+ GNUNET_ATS_ConnectivitySuggestHandle
*sh)
+__attribute__((deprecated));
/* ******************************** Scheduling API
***************************** */
@@ -288,7 +293,7 @@ typedef void
struct GNUNET_ATS_SchedulingHandle *
GNUNET_ATS_scheduling_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
GNUNET_ATS_AddressSuggestionCallback suggest_cb,
- void *suggest_cb_cls);
+ void *suggest_cb_cls) __attribute__((deprecated));
/**
@@ -297,7 +302,9 @@ GNUNET_ATS_scheduling_init (const struct
GNUNET_CONFIGURATION_Handle *cfg,
* @param sh handle to release
*/
void
-GNUNET_ATS_scheduling_done (struct GNUNET_ATS_SchedulingHandle *sh);
+GNUNET_ATS_scheduling_done (struct
+ GNUNET_ATS_SchedulingHandle *sh) __attribute__(
+ (deprecated));
/**
@@ -322,7 +329,8 @@ struct GNUNET_ATS_AddressRecord *
GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle *sh,
const struct GNUNET_HELLO_Address *address,
struct GNUNET_ATS_Session *session,
- const struct GNUNET_ATS_Properties *prop);
+ const struct GNUNET_ATS_Properties *prop)
__attribute__(
+ (deprecated));
/**
@@ -333,7 +341,8 @@ GNUNET_ATS_address_add (struct GNUNET_ATS_SchedulingHandle
*sh,
*/
void
GNUNET_ATS_address_add_session (struct GNUNET_ATS_AddressRecord *ar,
- struct GNUNET_ATS_Session *session);
+ struct GNUNET_ATS_Session *session)
+__attribute__((deprecated));
/**
@@ -350,7 +359,8 @@ GNUNET_ATS_address_add_session (struct
GNUNET_ATS_AddressRecord *ar,
*/
int
GNUNET_ATS_address_del_session (struct GNUNET_ATS_AddressRecord *ar,
- struct GNUNET_ATS_Session *session);
+ struct GNUNET_ATS_Session *session)
+__attribute__((deprecated));
/**
@@ -368,7 +378,9 @@ GNUNET_ATS_address_del_session (struct
GNUNET_ATS_AddressRecord *ar,
*/
void
GNUNET_ATS_address_update (struct GNUNET_ATS_AddressRecord *ar,
- const struct GNUNET_ATS_Properties *prop);
+ const struct
+ GNUNET_ATS_Properties *prop) __attribute__(
+ (deprecated));
/**
@@ -378,7 +390,8 @@ GNUNET_ATS_address_update (struct GNUNET_ATS_AddressRecord
*ar,
* expired and ATS may no longer use it
*/
void
-GNUNET_ATS_address_destroy (struct GNUNET_ATS_AddressRecord *ar);
+GNUNET_ATS_address_destroy (struct GNUNET_ATS_AddressRecord *ar) __attribute__(
+ (deprecated));
/* ******************************** Performance API
***************************** */
@@ -434,7 +447,8 @@ struct GNUNET_ATS_AddressListHandle;
struct GNUNET_ATS_PerformanceHandle *
GNUNET_ATS_performance_init (const struct GNUNET_CONFIGURATION_Handle *cfg,
GNUNET_ATS_AddressInformationCallback
addr_info_cb,
- void *addr_info_cb_cls);
+ void *addr_info_cb_cls) __attribute__(
+ (deprecated));
/**
@@ -455,7 +469,8 @@ GNUNET_ATS_performance_list_addresses (struct
GNUNET_ATS_PerformanceHandle *ph,
int all,
GNUNET_ATS_AddressInformationCallback
infocb,
- void *infocb_cls);
+ void *infocb_cls) __attribute__(
+ (deprecated));
/**
@@ -465,7 +480,8 @@ GNUNET_ATS_performance_list_addresses (struct
GNUNET_ATS_PerformanceHandle *ph,
*/
void
GNUNET_ATS_performance_list_addresses_cancel (struct
- GNUNET_ATS_AddressListHandle
*alh);
+ GNUNET_ATS_AddressListHandle
*alh)
+__attribute__((deprecated));
/**
@@ -474,7 +490,9 @@ GNUNET_ATS_performance_list_addresses_cancel (struct
* @param ph handle
*/
void
-GNUNET_ATS_performance_done (struct GNUNET_ATS_PerformanceHandle *ph);
+GNUNET_ATS_performance_done (struct
+ GNUNET_ATS_PerformanceHandle *ph) __attribute__(
+ (deprecated));
/**
@@ -519,7 +537,7 @@ GNUNET_ATS_reserve_bandwidth (struct
GNUNET_ATS_PerformanceHandle *ph,
const struct GNUNET_PeerIdentity *peer,
int32_t amount,
GNUNET_ATS_ReservationCallback rcb,
- void *rcb_cls);
+ void *rcb_cls) __attribute__((deprecated));
/**
@@ -528,7 +546,9 @@ GNUNET_ATS_reserve_bandwidth (struct
GNUNET_ATS_PerformanceHandle *ph,
* @param rc context returned by the original #GNUNET_ATS_reserve_bandwidth()
call
*/
void
-GNUNET_ATS_reserve_bandwidth_cancel (struct GNUNET_ATS_ReservationContext *rc);
+GNUNET_ATS_reserve_bandwidth_cancel (struct
+ GNUNET_ATS_ReservationContext *rc)
+__attribute__((deprecated));
/**
@@ -579,14 +599,15 @@ enum GNUNET_ATS_PreferenceKind
* @return a string or NULL if invalid
*/
const char *
-GNUNET_ATS_print_preference_type (enum GNUNET_ATS_PreferenceKind type);
+GNUNET_ATS_print_preference_type (enum GNUNET_ATS_PreferenceKind
+ type) __attribute__((deprecated));
/**
- * Change preferences for the given peer. Preference changes are
+ * Change preferences for the given peer. Preference changes are
* forgotten if peers disconnect.
*
- * @param ph performance handle
+ * @param ph performance handle
* @param peer identifies the peer
* @param ... #GNUNET_ATS_PREFERENCE_END-terminated specification of the
* desired changes
@@ -596,7 +617,7 @@ GNUNET_ATS_performance_change_preference (struct
GNUNET_ATS_PerformanceHandle *ph,
const struct
GNUNET_PeerIdentity *peer,
- ...);
+ ...) __attribute__((deprecated));
/**
@@ -620,7 +641,7 @@ void
GNUNET_ATS_performance_give_feedback (struct GNUNET_ATS_PerformanceHandle *ph,
const struct GNUNET_PeerIdentity *peer,
const struct GNUNET_TIME_Relative scope,
- ...);
+ ...) __attribute__((deprecated));
#endif
diff --git a/src/include/gnunet_ats_transport_service.h
b/src/include/gnunet_ats_transport_service.h
index b6c7b15ae..24594f44b 100644
--- a/src/include/gnunet_ats_transport_service.h
+++ b/src/include/gnunet_ats_transport_service.h
@@ -171,7 +171,7 @@ GNUNET_ATS_transport_init (const struct
GNUNET_CONFIGURATION_Handle *cfg,
GNUNET_ATS_AllocationCallback alloc_cb,
void *alloc_cb_cls,
GNUNET_ATS_SuggestionCallback suggest_cb,
- void *suggest_cb_cls);
+ void *suggest_cb_cls) __attribute__((deprecated));
/**
@@ -180,7 +180,9 @@ GNUNET_ATS_transport_init (const struct
GNUNET_CONFIGURATION_Handle *cfg,
* @param ath handle to release
*/
void
-GNUNET_ATS_transport_done (struct GNUNET_ATS_TransportHandle *ath);
+GNUNET_ATS_transport_done (struct
+ GNUNET_ATS_TransportHandle *ath) __attribute__(
+ (deprecated));
/**
@@ -208,7 +210,8 @@ GNUNET_ATS_session_add (struct GNUNET_ATS_TransportHandle
*ath,
const struct GNUNET_PeerIdentity *pid,
const char *address,
struct GNUNET_ATS_Session *session,
- const struct GNUNET_ATS_Properties *prop);
+ const struct GNUNET_ATS_Properties *prop)
__attribute__(
+ (deprecated));
/**
@@ -220,7 +223,9 @@ GNUNET_ATS_session_add (struct GNUNET_ATS_TransportHandle
*ath,
*/
void
GNUNET_ATS_session_update (struct GNUNET_ATS_SessionRecord *ar,
- const struct GNUNET_ATS_Properties *prop);
+ const struct
+ GNUNET_ATS_Properties *prop) __attribute__(
+ (deprecated));
/**
@@ -231,7 +236,8 @@ GNUNET_ATS_session_update (struct GNUNET_ATS_SessionRecord
*ar,
* @param ar session record to drop
*/
void
-GNUNET_ATS_session_del (struct GNUNET_ATS_SessionRecord *ar);
+GNUNET_ATS_session_del (struct GNUNET_ATS_SessionRecord *ar) __attribute__(
+ (deprecated));
#endif
diff --git a/src/include/gnunet_testing_ng_lib.h
b/src/include/gnunet_testing_ng_lib.h
index aae918ff3..0c8614eef 100644
--- a/src/include/gnunet_testing_ng_lib.h
+++ b/src/include/gnunet_testing_ng_lib.h
@@ -104,10 +104,10 @@ typedef void
(*GNUNET_TESTING_CommandCleanupRoutine)(void *cls);
typedef enum GNUNET_GenericReturnValue
-(*GNUNET_TESTING_CommandGetTraits) (void *cls,
- const void **ret,
- const char *trait,
- unsigned int index);
+(*GNUNET_TESTING_CommandGetTraits)(void *cls,
+ const void **ret,
+ const char *trait,
+ unsigned int index);
/**
* Create a new command
@@ -529,7 +529,7 @@ struct GNUNET_TESTING_Timer
*/
struct GNUNET_PeerIdentity *
GNUNET_TESTING_get_peer (unsigned int num,
- const struct GNUNET_TESTING_System *tl_system);
+ const struct GNUNET_TESTING_System *tl_system);
/**
@@ -542,15 +542,31 @@ struct GNUNET_TESTING_Command
GNUNET_TESTING_cmd_stat (struct GNUNET_TESTING_Timer *timers);
+/**
+ * Command to execute a script. The cmd succeeds when the script exit with 0
and fails,
+ * when the script exits with an error code.
+ *
+ * @param label The label of the cmd.
+ * @param script The name of the script.
+ * @param script_argv Array with script args.
+ * @param script_argv_len Length of the array.
+ */
+const struct GNUNET_TESTING_Command
+GNUNET_TESTING_cmd_exec_bash_script (const char *label,
+ const char *script,
+ char **script_argv,
+ unsigned int script_argv_len);
+
+
/* *** Generic trait logic for implementing traits ********* */
/**
- * A struct GNUNET_TESTING_Trait can be used to exchange data between cmds.
+ * A struct GNUNET_TESTING_Trait can be used to exchange data between cmds.
*
* Therefor the cmd which like to provide data to other cmds has to implement
- * the trait function, where an array of traits is defined with the help of
the
+ * the trait function, where an array of traits is defined with the help of the
* GNUNET_TESTING_make_trait_ macro. The data can be retrieved with the help
of the
- * GNUNET_TESTING_get_trait_ macro. Traits name and type must be defined to
make
+ * GNUNET_TESTING_get_trait_ macro. Traits name and type must be defined to
make
* use of the macros.
*/
struct GNUNET_TESTING_Trait
@@ -609,11 +625,11 @@ GNUNET_TESTING_get_trait (const struct
GNUNET_TESTING_Trait *traits,
*/
#define GNUNET_TESTING_MAKE_DECL_SIMPLE_TRAIT(name,type) \
enum GNUNET_GenericReturnValue \
- GNUNET_TESTING_get_trait_ ## name ( \
+ GNUNET_TESTING_get_trait_ ## name ( \
const struct GNUNET_TESTING_Command *cmd, \
type **ret); \
struct GNUNET_TESTING_Trait \
- GNUNET_TESTING_make_trait_ ## name ( \
+ GNUNET_TESTING_make_trait_ ## name ( \
type * value);
@@ -623,9 +639,9 @@ GNUNET_TESTING_get_trait (const struct GNUNET_TESTING_Trait
*traits,
*/
#define GNUNET_TESTING_MAKE_IMPL_SIMPLE_TRAIT(name,type) \
enum GNUNET_GenericReturnValue \
- GNUNET_TESTING_get_trait_ ## name ( \
+ GNUNET_TESTING_get_trait_ ## name ( \
const struct GNUNET_TESTING_Command *cmd, \
- type * *ret) \
+ type **ret) \
{ \
if (NULL == cmd->traits) return GNUNET_SYSERR; \
return cmd->traits (cmd->cls, \
@@ -634,7 +650,7 @@ GNUNET_TESTING_get_trait (const struct GNUNET_TESTING_Trait
*traits,
0); \
} \
struct GNUNET_TESTING_Trait \
- GNUNET_TESTING_make_trait_ ## name ( \
+ GNUNET_TESTING_make_trait_ ## name ( \
type * value) \
{ \
struct GNUNET_TESTING_Trait ret = { \
@@ -651,14 +667,14 @@ GNUNET_TESTING_get_trait (const struct
GNUNET_TESTING_Trait *traits,
*/
#define GNUNET_TESTING_MAKE_DECL_INDEXED_TRAIT(name,type) \
enum GNUNET_GenericReturnValue \
- GNUNET_TESTING_get_trait_ ## name ( \
+ GNUNET_TESTING_get_trait_ ## name ( \
const struct GNUNET_TESTING_Command *cmd, \
unsigned int index, \
type **ret); \
struct GNUNET_TESTING_Trait \
- GNUNET_TESTING_make_trait_ ## name ( \
+ GNUNET_TESTING_make_trait_ ## name ( \
unsigned int index, \
- type *value);
+ type * value);
/**
@@ -667,10 +683,10 @@ GNUNET_TESTING_get_trait (const struct
GNUNET_TESTING_Trait *traits,
*/
#define GNUNET_TESTING_MAKE_IMPL_INDEXED_TRAIT(name,type) \
enum GNUNET_GenericReturnValue \
- GNUNET_TESTING_get_trait_ ## name ( \
+ GNUNET_TESTING_get_trait_ ## name ( \
const struct GNUNET_TESTING_Command *cmd, \
unsigned int index, \
- type * *ret) \
+ type **ret) \
{ \
if (NULL == cmd->traits) return GNUNET_SYSERR; \
return cmd->traits (cmd->cls, \
@@ -679,7 +695,7 @@ GNUNET_TESTING_get_trait (const struct GNUNET_TESTING_Trait
*traits,
index); \
} \
struct GNUNET_TESTING_Trait \
- GNUNET_TESTING_make_trait_ ## name ( \
+ GNUNET_TESTING_make_trait_ ## name ( \
unsigned int index, \
type * value) \
{ \
diff --git a/src/include/gnunet_testing_plugin.h
b/src/include/gnunet_testing_plugin.h
index 12fbd7b75..d6a3560ef 100644
--- a/src/include/gnunet_testing_plugin.h
+++ b/src/include/gnunet_testing_plugin.h
@@ -40,6 +40,7 @@ extern "C"
struct GNUNET_TESTING_Barrier;
+
/**
* Callback function to write messages from the helper process running on a
netjail node to the master process.
*
@@ -48,7 +49,7 @@ struct GNUNET_TESTING_Barrier;
*/
typedef void
(*GNUNET_TESTING_cmd_helper_write_cb) (struct GNUNET_MessageHeader *message,
- size_t msg_length);
+ size_t msg_length);
/**
* Callback function which writes a message from the helper process running on
a netjail node to the master process * signaling that the test case running on
the netjail node finished.
@@ -70,7 +71,7 @@ typedef void
* the topology configuration.
* @param read_file If read_file is GNUNET_YES this string is the filename for
the topology configuration,
* if read_file is GNUNET_NO the string contains the topology
configuration.
- * @param finish_cb Callback function which writes a message from the helper
process running on a netjail
+ * @param finish_cb Callback function which writes a message from the helper
process running on a netjail
* node to the master process * signaling that the test case
running on the netjail node finished.
* @return Returns The struct GNUNET_TESTING_Interpreter of the command loop
running on this netjail node.
*/
@@ -84,7 +85,8 @@ typedef struct GNUNET_TESTING_Interpreter *
const char *local_m,
const char *topology_data,
unsigned int *read_file,
- GNUNET_TESTING_cmd_helper_finish_cb
finish_cb);
+ GNUNET_TESTING_cmd_helper_finish_cb
+ finish_cb);
/**
* DEPRECATED
diff --git a/src/include/gnunet_transport_hello_service.h
b/src/include/gnunet_transport_hello_service.h
index 03305ec27..34d3c8e4a 100644
--- a/src/include/gnunet_transport_hello_service.h
+++ b/src/include/gnunet_transport_hello_service.h
@@ -146,7 +146,7 @@ struct GNUNET_TRANSPORT_HelloGetHandle *
GNUNET_TRANSPORT_hello_get (const struct GNUNET_CONFIGURATION_Handle *cfg,
enum GNUNET_TRANSPORT_AddressClass ac,
GNUNET_TRANSPORT_HelloUpdateCallback rec,
- void *rec_cls);
+ void *rec_cls) __attribute__((deprecated));
/**
@@ -155,7 +155,9 @@ GNUNET_TRANSPORT_hello_get (const struct
GNUNET_CONFIGURATION_Handle *cfg,
* @param ghh handle to cancel
*/
void
-GNUNET_TRANSPORT_hello_get_cancel (struct GNUNET_TRANSPORT_HelloGetHandle
*ghh);
+GNUNET_TRANSPORT_hello_get_cancel (struct
+ GNUNET_TRANSPORT_HelloGetHandle *ghh)
+__attribute__((deprecated));
/**
@@ -167,12 +169,12 @@ GNUNET_TRANSPORT_hello_get_cancel (struct
GNUNET_TRANSPORT_HelloGetHandle *ghh);
* @param nt network type of the address
* @param expiration when does this address expire?
*/
-typedef void (*GNUNET_TRANSPORT_AddressCallback) (
+typedef void (*GNUNET_TRANSPORT_AddressCallback)(
void *cls,
const struct GNUNET_PeerIdentity *peer,
const char *address,
enum GNUNET_NetworkType nt,
- struct GNUNET_TIME_Absolute expiration);
+ struct GNUNET_TIME_Absolute expiration) __attribute__((deprecated));
/**
@@ -187,7 +189,7 @@ typedef void (*GNUNET_TRANSPORT_AddressCallback) (
int
GNUNET_TRANSPORT_hello_parse (const struct GNUNET_MessageHeader *hello,
GNUNET_TRANSPORT_AddressCallback cb,
- void *cb_cls);
+ void *cb_cls) __attribute__((deprecated));
#if 0 /* keep Emacsens' auto-indent happy */
diff --git a/src/include/gnunet_transport_service.h
b/src/include/gnunet_transport_service.h
index 72cdbe0a7..9d784e142 100644
--- a/src/include/gnunet_transport_service.h
+++ b/src/include/gnunet_transport_service.h
@@ -60,7 +60,7 @@ extern "C" {
/**
* Handle for a #GNUNET_TRANSPORT_offer_hello operation
*/
-struct GNUNET_TRANSPORT_OfferHelloHandle;
+struct GNUNET_TRANSPORT_OfferHelloHandle __attribute__((deprecated));
/**
@@ -82,7 +82,7 @@ struct GNUNET_TRANSPORT_OfferHelloHandle *
GNUNET_TRANSPORT_offer_hello (const struct GNUNET_CONFIGURATION_Handle *cfg,
const struct GNUNET_MessageHeader *hello,
GNUNET_SCHEDULER_TaskCallback cont,
- void *cont_cls);
+ void *cont_cls) __attribute__((deprecated));
/**
@@ -92,7 +92,7 @@ GNUNET_TRANSPORT_offer_hello (const struct
GNUNET_CONFIGURATION_Handle *cfg,
*/
void
GNUNET_TRANSPORT_offer_hello_cancel (
- struct GNUNET_TRANSPORT_OfferHelloHandle *ohh);
+ struct GNUNET_TRANSPORT_OfferHelloHandle *ohh) __attribute__((deprecated));
/* *********************** Address to String ******************* */
@@ -285,7 +285,7 @@ enum GNUNET_TRANSPORT_PeerState
* freed (the exception being the cleanup code in #free_neighbour()).
*/
GNUNET_TRANSPORT_PS_DISCONNECT_FINISHED
-};
+} __attribute__((deprecated));
/**
@@ -294,7 +294,8 @@ enum GNUNET_TRANSPORT_PeerState
* @param state the state
*/
const char *
-GNUNET_TRANSPORT_ps2s (enum GNUNET_TRANSPORT_PeerState state);
+GNUNET_TRANSPORT_ps2s (enum GNUNET_TRANSPORT_PeerState state) __attribute__(
+ (deprecated));
/**
@@ -304,13 +305,14 @@ GNUNET_TRANSPORT_ps2s (enum GNUNET_TRANSPORT_PeerState
state);
* @return #GNUNET_YES or #GNUNET_NO
*/
int
-GNUNET_TRANSPORT_is_connected (enum GNUNET_TRANSPORT_PeerState state);
+GNUNET_TRANSPORT_is_connected (enum GNUNET_TRANSPORT_PeerState
+ state) __attribute__((deprecated));
/**
* Handle for a #GNUNET_TRANSPORT_monitor_peers operation.
*/
-struct GNUNET_TRANSPORT_PeerMonitoringContext;
+struct GNUNET_TRANSPORT_PeerMonitoringContext __attribute__((deprecated));
/**
@@ -332,12 +334,12 @@ struct GNUNET_TRANSPORT_PeerMonitoringContext;
* @param state_timeout timeout for the current state of the peer
*/
typedef void
-(*GNUNET_TRANSPORT_PeerIterateCallback) (
+(*GNUNET_TRANSPORT_PeerIterateCallback)(
void *cls,
const struct GNUNET_PeerIdentity *peer,
const struct GNUNET_HELLO_Address *address,
enum GNUNET_TRANSPORT_PeerState state,
- struct GNUNET_TIME_Absolute state_timeout);
+ struct GNUNET_TIME_Absolute state_timeout) __attribute__((deprecated));
/**
@@ -361,8 +363,8 @@ typedef void
* @param cfg configuration to use
* @param peer a specific peer identity to obtain information for,
* NULL for all peers
- * @param one_shot #GNUNET_YES to return the current state and
- * then end (with NULL+NULL),
+ * @param one_shot #GNUNET_YES to return the current state and
+ * then end (with NULL+NULL),
* #GNUNET_NO to monitor peers continuously
* @param peer_callback function to call with the results
* @param peer_callback_cls closure for @a peer_callback
@@ -373,7 +375,8 @@ GNUNET_TRANSPORT_monitor_peers (
const struct GNUNET_PeerIdentity *peer,
int one_shot,
GNUNET_TRANSPORT_PeerIterateCallback peer_callback,
- void *peer_callback_cls);
+ void *peer_callback_cls) __attribute__((deprecated)) __attribute__(
+ (deprecated));
/**
@@ -383,7 +386,8 @@ GNUNET_TRANSPORT_monitor_peers (
*/
void
GNUNET_TRANSPORT_monitor_peers_cancel (
- struct GNUNET_TRANSPORT_PeerMonitoringContext *pic);
+ struct GNUNET_TRANSPORT_PeerMonitoringContext *pic) __attribute__(
+ (deprecated)) __attribute__((deprecated));
/* *********************** Blacklisting ************************ */
@@ -391,7 +395,7 @@ GNUNET_TRANSPORT_monitor_peers_cancel (
/**
* Handle for blacklisting peers.
*/
-struct GNUNET_TRANSPORT_Blacklist;
+struct GNUNET_TRANSPORT_Blacklist __attribute__((deprecated));
/**
@@ -402,9 +406,9 @@ struct GNUNET_TRANSPORT_Blacklist;
* @return #GNUNET_OK if the connection is allowed, #GNUNET_SYSERR if not
*/
typedef int
-(*GNUNET_TRANSPORT_BlacklistCallback) (
+(*GNUNET_TRANSPORT_BlacklistCallback)(
void *cls,
- const struct GNUNET_PeerIdentity *pid);
+ const struct GNUNET_PeerIdentity *pid) __attribute__((deprecated));
/**
@@ -424,7 +428,7 @@ typedef int
struct GNUNET_TRANSPORT_Blacklist *
GNUNET_TRANSPORT_blacklist (const struct GNUNET_CONFIGURATION_Handle *cfg,
GNUNET_TRANSPORT_BlacklistCallback cb,
- void *cb_cls);
+ void *cb_cls) __attribute__((deprecated));
/**
@@ -434,19 +438,21 @@ GNUNET_TRANSPORT_blacklist (const struct
GNUNET_CONFIGURATION_Handle *cfg,
* @param br handle of the request that is to be cancelled
*/
void
-GNUNET_TRANSPORT_blacklist_cancel (struct GNUNET_TRANSPORT_Blacklist *br);
+GNUNET_TRANSPORT_blacklist_cancel (struct
+ GNUNET_TRANSPORT_Blacklist *br)
__attribute__(
+ (deprecated));
/**
* Handle for a plugin session state monitor.
*/
-struct GNUNET_TRANSPORT_PluginMonitor;
+struct GNUNET_TRANSPORT_PluginMonitor __attribute__((deprecated));
/**
* Abstract representation of a plugin's session.
* Corresponds to the `struct GNUNET_ATS_Session` within the TRANSPORT service.
*/
-struct GNUNET_TRANSPORT_PluginSession;
+struct GNUNET_TRANSPORT_PluginSession __attribute__((deprecated));
/**
@@ -480,7 +486,7 @@ enum GNUNET_TRANSPORT_SessionState
* Last call for each session object.
*/
GNUNET_TRANSPORT_SS_DONE
-};
+} __attribute__((deprecated));
/**
@@ -529,7 +535,7 @@ struct GNUNET_TRANSPORT_SessionInfo
* Address used by the session. Can be NULL if none is available.
*/
const struct GNUNET_HELLO_Address *address;
-};
+} __attribute__((deprecated));
/**
@@ -550,11 +556,11 @@ struct GNUNET_TRANSPORT_SessionInfo
* was being cancelled while sessions were active
*/
typedef void
-(*GNUNET_TRANSPORT_SessionMonitorCallback) (
+(*GNUNET_TRANSPORT_SessionMonitorCallback)(
void *cls,
struct GNUNET_TRANSPORT_PluginSession *session,
void **session_ctx,
- const struct GNUNET_TRANSPORT_SessionInfo *info);
+ const struct GNUNET_TRANSPORT_SessionInfo *info) __attribute__((deprecated));
/**
@@ -569,7 +575,7 @@ typedef void
struct GNUNET_TRANSPORT_PluginMonitor *
GNUNET_TRANSPORT_monitor_plugins (const struct GNUNET_CONFIGURATION_Handle
*cfg,
GNUNET_TRANSPORT_SessionMonitorCallback cb,
- void *cb_cls);
+ void *cb_cls) __attribute__((deprecated));
/**
@@ -581,7 +587,7 @@ GNUNET_TRANSPORT_monitor_plugins (const struct
GNUNET_CONFIGURATION_Handle *cfg,
*/
void
GNUNET_TRANSPORT_monitor_plugins_cancel (
- struct GNUNET_TRANSPORT_PluginMonitor *pm);
+ struct GNUNET_TRANSPORT_PluginMonitor *pm) __attribute__((deprecated));
/**
@@ -644,10 +650,10 @@ typedef void
* connect notification callback
*/
typedef void
-(*GNUNET_TRANSPORT_NotifyExcessBandwidth) (
+(*GNUNET_TRANSPORT_NotifyExcessBandwidth)(
void *cls,
const struct GNUNET_PeerIdentity *neighbour,
- void *handlers_cls);
+ void *handlers_cls) __attribute__((deprecated));
/**
@@ -674,7 +680,8 @@ GNUNET_TRANSPORT_core_connect (const struct
GNUNET_CONFIGURATION_Handle *cfg,
void *cls,
GNUNET_TRANSPORT_NotifyConnect nc,
GNUNET_TRANSPORT_NotifyDisconnect nd,
- GNUNET_TRANSPORT_NotifyExcessBandwidth neb);
+ GNUNET_TRANSPORT_NotifyExcessBandwidth neb)
+__attribute__((deprecated));
/**
--
To stop receiving notification emails like this one, please contact
gnunet@gnunet.org.
- [gnunet] branch master updated (92c6b1ae0 -> 898b9a01a), gnunet, 2023/10/05
- [gnunet] 01/40: NEWS: Added __attribute__((deprecated)) to the old transport API, gnunet, 2023/10/05
- [gnunet] 06/40: TNG: Accidentally removed code., gnunet, 2023/10/05
- [gnunet] 02/40: NEWS: Added __attribute__((deprecated)) to the old transport API,
gnunet <=
- [gnunet] 09/40: NEWS: Moved start peer command to testing subsystem., gnunet, 2023/10/05
- [gnunet] 05/40: TNG: Deactivated all tests which rely on the old transport api., gnunet, 2023/10/05
- [gnunet] 12/40: TNG: Fixed bug that QueueEntry of another queue still holds reference to PendingMessage., gnunet, 2023/10/05
- [gnunet] 13/40: NEWS: Changed new hello uri api to allow to change the expiration time, gnunet, 2023/10/05
- [gnunet] 22/40: NEWS: Code moved to the core package to get rid of circular dependencies., gnunet, 2023/10/05
- [gnunet] 16/40: TOPOLOGY: Exchanged peerinfo api to store hellos with new peerstore api., gnunet, 2023/10/05
- [gnunet] 19/40: HELLO: Cli tool for changing hello files in contrib can change file from old to new hello design., gnunet, 2023/10/05
- [gnunet] 07/40: NEWS: Added command to execute a script., gnunet, 2023/10/05
- [gnunet] 17/40: PEERSTORE: change watch to return actual values, before watching., gnunet, 2023/10/05
- [gnunet] 32/40: Merge branch 'master' into l20integration, gnunet, 2023/10/05