A tool for adding anime to your anidb list.
Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.

26 lignes
457B

  1. #ifndef _NET_H
  2. #define _NET_H
  3. #include <stdint.h>
  4. #include <sys/types.h>
  5. #include "error.h"
  6. /*
  7. * Initializes the net class
  8. */
  9. enum error net_init();
  10. /*
  11. * Send and read data to and from the api
  12. * Returns the number of bytes sent/read or
  13. * a negative value which is the errno */
  14. ssize_t net_send(const void *msg, size_t msg_len);
  15. ssize_t net_read(void *out_data, size_t read_size);
  16. /*
  17. * Frees the net class
  18. */
  19. void net_free();
  20. #endif /* _NET_H */