From c62e6076468278b581db325df244b3bd59cee042 Mon Sep 17 00:00:00 2001 From: Daniel Bevenius Date: Fri, 5 Apr 2024 08:58:04 +0200 Subject: [PATCH] backend: remove duplicate backend typedefs This commit removes the duplicate typedefs for backend structs in `ggml-backend.h`. These typedefs are already defined in `ggml-alloc.h` which `ggml-backend.h` includes. There might be a case for having the typedefs in `ggml-backend.h` but if this perhaps is an oversight I think it might better to remove them from `ggml-backend.h` to avoid confusion. Signed-off-by: Daniel Bevenius --- include/ggml/ggml-backend.h | 3 --- 1 file changed, 3 deletions(-) diff --git a/include/ggml/ggml-backend.h b/include/ggml/ggml-backend.h index 744b6a774..fbdba0dae 100644 --- a/include/ggml/ggml-backend.h +++ b/include/ggml/ggml-backend.h @@ -7,10 +7,7 @@ extern "C" { #endif - typedef struct ggml_backend_buffer_type * ggml_backend_buffer_type_t; - typedef struct ggml_backend_buffer * ggml_backend_buffer_t; typedef struct ggml_backend_event * ggml_backend_event_t; - typedef struct ggml_backend * ggml_backend_t; typedef void * ggml_backend_graph_plan_t; //