getargv needs to return a list reference

xml rpc only allows functions to return a single value, no lists. So getargv
needs to return a list reference, which means that the caller will see an xml
rpc array.
master
Joey Hess 2008-03-19 15:12:59 -04:00
parent 556ec23914
commit f003e97d10
2 changed files with 2 additions and 2 deletions

View File

@ -156,7 +156,7 @@ sub setstate ($$$$;@) { #{{{
sub getargv ($) { #{{{ sub getargv ($) { #{{{
my $plugin=shift; my $plugin=shift;
return @ARGV; return \@ARGV;
} #}}} } #}}}
sub setargv ($@) { #{{{ sub setargv ($@) { #{{{

View File

@ -53,7 +53,7 @@ it, external plugins can use the `getstate` and `setstate` RPCs. To access
stored state, call `getstate("page", "id", "key")`, and to store state, stored state, call `getstate("page", "id", "key")`, and to store state,
call `setstate("page", "id", "key", "value")`. call `setstate("page", "id", "key", "value")`.
To access ikiwiki's ARGV, call `getargv()`. To change its ARGV, call To access ikiwiki's ARGV array, call `getargv()`. To change its ARGV, call
`setargv(value)`. `setargv(value)`.
## Notes on function parameters ## Notes on function parameters