types.h 1.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. /* types.h: Rx types
  2. *
  3. * Copyright (C) 2002 Red Hat, Inc. All Rights Reserved.
  4. * Written by David Howells (dhowells@redhat.com)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License
  8. * as published by the Free Software Foundation; either version
  9. * 2 of the License, or (at your option) any later version.
  10. */
  11. #ifndef _LINUX_RXRPC_TYPES_H
  12. #define _LINUX_RXRPC_TYPES_H
  13. #include <linux/types.h>
  14. #include <linux/list.h>
  15. #include <linux/socket.h>
  16. #include <linux/in.h>
  17. #include <linux/spinlock.h>
  18. #include <asm/atomic.h>
  19. typedef uint32_t rxrpc_seq_t; /* Rx message sequence number */
  20. typedef uint32_t rxrpc_serial_t; /* Rx message serial number */
  21. typedef __be32 rxrpc_seq_net_t; /* on-the-wire Rx message sequence number */
  22. typedef __be32 rxrpc_serial_net_t; /* on-the-wire Rx message serial number */
  23. struct rxrpc_call;
  24. struct rxrpc_connection;
  25. struct rxrpc_header;
  26. struct rxrpc_message;
  27. struct rxrpc_operation;
  28. struct rxrpc_peer;
  29. struct rxrpc_service;
  30. typedef struct rxrpc_timer rxrpc_timer_t;
  31. struct rxrpc_transport;
  32. typedef void (*rxrpc_call_attn_func_t)(struct rxrpc_call *call);
  33. typedef void (*rxrpc_call_error_func_t)(struct rxrpc_call *call);
  34. typedef void (*rxrpc_call_aemap_func_t)(struct rxrpc_call *call);
  35. #endif /* _LINUX_RXRPC_TYPES_H */