Skip to content

Commit

Permalink
Add symlink to api.h
Browse files Browse the repository at this point in the history
Signed-off-by: Francois JACQUES <[email protected]>
  • Loading branch information
hypnoce committed Feb 28, 2025
1 parent a007382 commit d15daf9
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
Original file line number Diff line number Diff line change
@@ -1,23 +1,21 @@
load("@io_bazel_rules_go//go:def.bzl", "go_library")
load(
"@envoy//bazel:envoy_build_system.bzl",
"//bazel:envoy_build_system.bzl",
"envoy_cc_test_library",
)
licenses(["notice"]) # Apache 2

envoy_cc_test_library(
name = "destroyconfig_test_lib",
hdrs = ["destroyconfig.h"],
deps = [
"//contrib/golang/common/dso:dso_lib",
],
hdrs = ["destroyconfig.h", "api.h"],
)

go_library(
name = "destroyconfig",
srcs = [
"config.go",
"destroyconfig.h",
"api.h",
],
cgo = True,
importpath = "example.com/test-data/destroyconfig",
Expand Down
Original file line number Diff line number Diff line change
@@ -1,14 +1,13 @@
#pragma once
// NOLINT(namespace-envoy)
#pragma GCC diagnostic ignored "-Wold-style-cast"

#include "api.h"
#ifdef __cplusplus
#include "contrib/golang/common/dso/api.h"
struct httpDestroyableConfig : httpConfig {
int destroyed;
} ;
extern "C" {
#else
#include "contrib/golang/common/go/api/api.h"
typedef struct {
httpConfig c;
int destroyed;
Expand Down

0 comments on commit d15daf9

Please sign in to comment.