gmountoperation: Add missing (array) annotations

Two of the vfuncs in GMountOperation need some annotations for their
element types and array sizes, otherwise g-ir-scanner comes up with
nonsense output.

Signed-off-by: Philip Withnall <withnall@endlessm.com>

https://bugzilla.gnome.org/show_bug.cgi?id=773980
This commit is contained in:
Philip Withnall 2017-11-15 10:54:30 +00:00
parent 181eb900d5
commit b16d7fc1a7

View File

@ -64,6 +64,12 @@ struct _GMountOperationClass
const char *default_domain,
GAskPasswordFlags flags);
/**
* GMountOperationClass::ask_question:
* @op:
* @message:
* @choices: (array zero-terminated=1) (element-type utf8):
*/
void (* ask_question) (GMountOperation *op,
const char *message,
const char *choices[]);
@ -73,6 +79,15 @@ struct _GMountOperationClass
void (* aborted) (GMountOperation *op);
/**
* GMountOperationClass::show_processes:
* @op:
* @message:
* @processes: (element-type GPid):
* @choices: (array zero-terminated=1) (element-type utf8):
*
* Since: 2.22
*/
void (* show_processes) (GMountOperation *op,
const gchar *message,
GArray *processes,