X-Git-Url: http://info.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/96cedde3cdbc0b8ffc3f096a1b65d021b0226f99..a707ad979be7c88d7581f403661c67598d320d55:/include/simgrid/mailbox.h diff --git a/include/simgrid/mailbox.h b/include/simgrid/mailbox.h index 4bae8cbaf0..7680a6d73b 100644 --- a/include/simgrid/mailbox.h +++ b/include/simgrid/mailbox.h @@ -1,4 +1,4 @@ -/* Copyright (c) 2018-2019. The SimGrid Team. All rights reserved. */ +/* Copyright (c) 2018-2022. The SimGrid Team. All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it * under the terms of the license (GNU LGPL) which comes with this package. */ @@ -7,14 +7,22 @@ #define INCLUDE_SIMGRID_MAILBOX_H_ #include -#include /* C interface */ -SG_BEGIN_DECL() +SG_BEGIN_DECL +XBT_PUBLIC sg_mailbox_t sg_mailbox_by_name(const char* alias); +XBT_PUBLIC const char* sg_mailbox_get_name(const_sg_mailbox_t mailbox); XBT_PUBLIC void sg_mailbox_set_receiver(const char* alias); XBT_PUBLIC int sg_mailbox_listen(const char* alias); -SG_END_DECL() +XBT_PUBLIC sg_comm_t sg_mailbox_put_init(sg_mailbox_t mailbox, void* payload, long simulated_size_in_bytes); +XBT_PUBLIC sg_comm_t sg_mailbox_put_async(sg_mailbox_t mailbox, void* payload, long simulated_size_in_bytes); +XBT_PUBLIC void sg_mailbox_put(sg_mailbox_t mailbox, void* payload, long simulated_size_in_bytes); + +XBT_PUBLIC sg_comm_t sg_mailbox_get_async(sg_mailbox_t mailbox, void** data); +XBT_PUBLIC void* sg_mailbox_get(sg_mailbox_t mailbox); + +SG_END_DECL #endif /* INCLUDE_SIMGRID_MAILBOX_H_ */