zink: add c++ header guards
Reviewed-by: Dave Airlie <airlied@redhat.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/11685>
This commit is contained in:
parent
ccf6ea3070
commit
b432bdc035
|
@ -32,6 +32,10 @@
|
|||
|
||||
#include "zink_fence.h"
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct pipe_reference;
|
||||
|
||||
struct zink_buffer_view;
|
||||
|
@ -216,4 +220,8 @@ zink_batch_usage_check_completion(struct zink_context *ctx, const struct zink_ba
|
|||
void
|
||||
zink_batch_usage_wait(struct zink_context *ctx, struct zink_batch_usage *u);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -46,6 +46,10 @@
|
|||
|
||||
#include <vulkan/vulkan.h>
|
||||
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct blitter_context;
|
||||
struct list_head;
|
||||
|
||||
|
@ -439,4 +443,9 @@ zink_pipeline_flags_from_pipe_stage(enum pipe_shader_type pstage)
|
|||
unreachable("unknown shader stage");
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -32,6 +32,9 @@
|
|||
#include "util/simple_mtx.h"
|
||||
|
||||
#include "zink_batch.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
#ifndef ZINK_SHADER_COUNT
|
||||
#define ZINK_SHADER_COUNT (PIPE_SHADER_TYPES - 1)
|
||||
|
@ -280,4 +283,8 @@ zink_descriptors_deinit_lazy(struct zink_context *ctx);
|
|||
|
||||
void
|
||||
zink_descriptor_set_update_lazy(struct zink_context *ctx, struct zink_program *pg, enum zink_descriptor_type type, VkDescriptorSet set);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -33,6 +33,9 @@
|
|||
#include "zink_context.h"
|
||||
#include "zink_compiler.h"
|
||||
#include "zink_shader_keys.h"
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
struct zink_screen;
|
||||
struct zink_shader;
|
||||
|
@ -229,5 +232,8 @@ zink_program_has_descriptors(const struct zink_program *pg)
|
|||
{
|
||||
return pg->num_dsl > 0;
|
||||
}
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
|
@ -29,6 +29,9 @@ struct zink_context;
|
|||
struct zink_fence;
|
||||
struct zink_query;
|
||||
struct zink_screen;
|
||||
#ifdef __cplusplus
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
void
|
||||
zink_suspend_queries(struct zink_context *ctx, struct zink_batch *batch);
|
||||
|
@ -47,4 +50,8 @@ zink_start_conditional_render(struct zink_context *ctx);
|
|||
|
||||
void
|
||||
zink_stop_conditional_render(struct zink_context *ctx);
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
|
Loading…
Reference in New Issue