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 d051c19 commit 375782a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions prog.go
Original file line number Diff line number Diff line change
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 375782a

Please sign in to comment.