make license handling easier

This commit is contained in:
2025-09-09 00:19:53 +05:30
parent d6ba30805e
commit 03404bb164
4 changed files with 35 additions and 21 deletions

View File

@ -28,10 +28,7 @@ def hello_again(ctx: c_void_p) -> c_int64:
ts = bpf_ktime_get_ns()
return c_int64(0)
# @bpf
# @bpfglobal
# def LICENSE() -> str:
# return "GPL"
LICENSE = "GPL"
@bpf
@bpfglobal
def LICENSE() -> str:
return "GPL"