Add header guard and forward declare structs. Move virgl_resource.h
inclusion to the C file.
Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
Reviewed-by: Alexandros Frantzis <alexandros.frantzis@collabora.com>
#include "virgl_protocol.h"
#include "virgl_screen.h"
#include "virgl_encode.h"
+#include "virgl_resource.h"
#include "virgl_transfer_queue.h"
struct list_action_args
* USE OR OTHER DEALINGS IN THE SOFTWARE.
*/
-#include "virgl_resource.h"
+#ifndef VIRGL_TRANSFER_QUEUE_H
+#define VIRGL_TRANSFER_QUEUE_H
+
+#include "pipe/p_defines.h"
+#include "util/list.h"
+
+struct virgl_cmd_buf;
+struct virgl_screen;
+struct virgl_slab_child_pool;
+struct virgl_transfer;
enum virgl_transfer_queue_lists {
PENDING_LIST = 0,
*/
struct virgl_transfer * virgl_transfer_queue_extend(
struct virgl_transfer_queue *queue, struct virgl_transfer *transfer);
+
+#endif /* VIRGL_TRANSFER_QUEUE_H */