X-Git-Url: https://git.libre-soc.org/?a=blobdiff_plain;f=src%2Fgallium%2Fstate_trackers%2Fhgl%2Fhgl_context.h;h=d2ec7fb49c4397cb2eba8b90dc7665d5950cc25a;hb=1ee503c74dafe504acf1ca2751bf4fdb326da049;hp=4840d9e2ee459639bf5fba4f50544d4c1b9c3552;hpb=290553b6d637779cb733549a582230437545d335;p=mesa.git diff --git a/src/gallium/state_trackers/hgl/hgl_context.h b/src/gallium/state_trackers/hgl/hgl_context.h index 4840d9e2ee4..d2ec7fb49c4 100644 --- a/src/gallium/state_trackers/hgl/hgl_context.h +++ b/src/gallium/state_trackers/hgl/hgl_context.h @@ -9,9 +9,6 @@ #define HGL_CONTEXT_H -#ifdef __cplusplus -extern "C" { -#endif #include "state_tracker/st_api.h" #include "state_tracker/st_manager.h" #include "pipe/p_compiler.h" @@ -20,8 +17,10 @@ extern "C" { #include "os/os_thread.h" #include "bitmap_wrapper.h" + + #ifdef __cplusplus -} +extern "C" { #endif @@ -82,6 +81,9 @@ struct hgl_context }; +// hgl state_tracker api +struct st_api* hgl_create_st_api(void); + // hgl state_tracker framebuffer struct hgl_buffer* hgl_create_st_framebuffer(struct hgl_context* context); @@ -94,4 +96,8 @@ struct st_visual* hgl_create_st_visual(ulong options); void hgl_destroy_st_visual(struct st_visual* visual); +#ifdef __cplusplus +} +#endif + #endif /* HGL_CONTEXT_H */