Skip to content

Commit

Permalink
chore(prog): add TODO
Browse files Browse the repository at this point in the history
  • Loading branch information
geyslan committed Aug 28, 2023
1 parent 10d3c2e commit 0e80a6e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prog.go
Expand Up @@ -142,10 +142,12 @@ func (p *BPFProg) SetAttachTarget(attachProgFD int, attachFuncName string) error
return nil
}

// TODO: fix API to return error
func (p *BPFProg) SetProgramType(progType BPFProgType) {
C.bpf_program__set_type(p.prog, C.enum_bpf_prog_type(int(progType)))
}

// TODO: fix API to return error
func (p *BPFProg) SetAttachType(attachType BPFAttachType) {
C.bpf_program__set_expected_attach_type(p.prog, C.enum_bpf_attach_type(int(attachType)))
}
Expand Down

0 comments on commit 0e80a6e

Please sign in to comment.