Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Callbacks ¶
func Callbacks() *c.OpenVPNPluginCallbacks
func CreateCStringArray ¶
CreateCStringArray creates a NULL-terminated C string array from a Go string slice. This is a helper function for testing CGO code.
The caller is responsible for freeing the memory by calling FreeCStringArray.
Parameters:
- strings: A slice of Go strings to convert
Returns:
- **c.Char: Pointer to a NULL-terminated array of C strings
- []*c.Char: Slice of individual C string pointers (for cleanup)
func CreateEmptyCStringArray ¶
CreateEmptyCStringArray creates a NULL-terminated empty C string array. This is useful for testing edge cases.
The caller is responsible for freeing the memory by calling c.Free on the returned pointer.
Returns:
- **c.Char: Pointer to a NULL-terminated empty array
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.