mirror of
https://github.com/rclone/rclone.git
synced 2024-11-22 08:23:47 +01:00
docs/librclone: document that strings are utf8 encoded
This commit is contained in:
parent
286b152e7b
commit
b4944f4520
@ -68,12 +68,14 @@ type RcloneRPCResult struct { //nolint:deadcode
|
|||||||
// to the rclone API as described in https://rclone.org/rc/
|
// to the rclone API as described in https://rclone.org/rc/
|
||||||
//
|
//
|
||||||
// method is a string, eg "operations/list"
|
// method is a string, eg "operations/list"
|
||||||
// input should be a serialized JSON object
|
// input should be a string with a serialized JSON object
|
||||||
// result.Output will be returned as a serialized JSON object
|
// result.Output will be returned as a string with a serialized JSON object
|
||||||
// result.Status is a HTTP status return (200=OK anything else fail)
|
// result.Status is a HTTP status return (200=OK anything else fail)
|
||||||
//
|
//
|
||||||
// Caller is responsible for freeing the memory for result.Output,
|
// All strings are UTF-8 encoded, on all platforms.
|
||||||
// result itself is passed on the stack.
|
//
|
||||||
|
// Caller is responsible for freeing the memory for result.Output
|
||||||
|
// (see RcloneFreeString), result itself is passed on the stack.
|
||||||
//
|
//
|
||||||
//export RcloneRPC
|
//export RcloneRPC
|
||||||
func RcloneRPC(method *C.char, input *C.char) (result C.struct_RcloneRPCResult) { //nolint:golint
|
func RcloneRPC(method *C.char, input *C.char) (result C.struct_RcloneRPCResult) { //nolint:golint
|
||||||
|
Loading…
Reference in New Issue
Block a user