]> git.xonotic.org Git - xonotic/darkplaces.git/blobdiff - cmd.h
cmd: Re-re-re-implement the cbuf. This time using the new generic linked list.
[xonotic/darkplaces.git] / cmd.h
diff --git a/cmd.h b/cmd.h
index 8a8d32b9475b7c132e3fed3c1aae4f569f28df7e..d2b756dd87580509e0e3bcd5a0f3adde24a00c46 100644 (file)
--- a/cmd.h
+++ b/cmd.h
@@ -58,7 +58,7 @@ typedef enum
 {
        src_client,             ///< came in over a net connection as a clc_stringcmd
                                        ///< host_client will be valid during this state.
-       src_command             ///< from the command buffer
+       src_local               ///< from the command buffer
 } cmd_source_t;
 
 typedef struct cmdalias_s
@@ -136,7 +136,7 @@ cmd_state_t;
 
 typedef struct cbuf_cmd_s
 {
-       struct cbuf_cmd_s *prev, *next;
+       llist_t list;
        cmd_state_t *source;
        double delay;
        size_t size;
@@ -146,9 +146,9 @@ typedef struct cbuf_cmd_s
 
 typedef struct cbuf_s
 {
-       cbuf_cmd_t *start;
-       cbuf_cmd_t *deferred;
-       cbuf_cmd_t *free;
+       llist_t start;
+       llist_t deferred;
+       llist_t free;
        qboolean wait;
        size_t maxsize;
        size_t size;