{"action":"created","issue":{"url":"https://api.github.com/repos/gkoz/gir/issues/117","labels_url":"https://api.github.com/repos/gkoz/gir/issues/117/labels{/name}","comments_url":"https://api.github.com/repos/gkoz/gir/issues/117/comments","events_url":"https://api.github.com/repos/gkoz/gir/issues/117/events","html_url":"https://github.com/gkoz/gir/issues/117","id":108085371,"number":117,"title":"Fix out parameters as return for TypeKind other of Direct","user":{"login":"EPashkin","id":584258,"avatar_url":"https://avatars.githubusercontent.com/u/584258?v=3","gravatar_id":"","url":"https://api.github.com/users/EPashkin","html_url":"https://github.com/EPashkin","followers_url":"https://api.github.com/users/EPashkin/followers","following_url":"https://api.github.com/users/EPashkin/following{/other_user}","gists_url":"https://api.github.com/users/EPashkin/gists{/gist_id}","starred_url":"https://api.github.com/users/EPashkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EPashkin/subscriptions","organizations_url":"https://api.github.com/users/EPashkin/orgs","repos_url":"https://api.github.com/users/EPashkin/repos","events_url":"https://api.github.com/users/EPashkin/events{/privacy}","received_events_url":"https://api.github.com/users/EPashkin/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":8,"created_at":"2015-09-24T08:41:28Z","updated_at":"2015-09-24T21:44:12Z","closed_at":null,"body":"Currently out parameters treated same way that result code like this\r\n```\r\n    fn query_child_packing<T: Upcast<Widget>>(&self, child: &T) -> (bool, bool, u32, PackType) {\r\n        let mut expand.to_glib() = Default::default();\r\n        let mut fill.to_glib() = Default::default();\r\n        let mut padding = Default::default();\r\n        let mut pack_type = Default::default();\r\n        unsafe {\r\n            ffi::gtk_box_query_child_packing(self.upcast().to_glib_none().0, child.upcast().to_glib_none().0, &mut expand.to_glib(), &mut fill.to_glib(), &mut padding, &mut pack_type);\r\n        }\r\n        (expand.to_glib(), fill.to_glib(), padding, pack_type)\r\n    }\r\n```\r\nList of ffi functions which must return out parameters\r\n- [ ] gtk_alignment_get_padding\r\n- [ ] gtk_box_query_child_packing\r\n- [ ] gtk_button_get_alignment\r\n- [ ] gtk_calendar_get_date\r\n- [ ] gtk_frame_get_label_align\r\n- [ ] gtk_label_get_layout_offsets\r\n- [ ] gtk_layout_get_size\r\n- [ ] gtk_misc_get_alignment\r\n- [ ] gtk_misc_get_padding\r\n"},"comment":{"url":"https://api.github.com/repos/gkoz/gir/issues/comments/143058668","html_url":"https://github.com/gkoz/gir/issues/117#issuecomment-143058668","issue_url":"https://api.github.com/repos/gkoz/gir/issues/117","id":143058668,"user":{"login":"EPashkin","id":584258,"avatar_url":"https://avatars.githubusercontent.com/u/584258?v=3","gravatar_id":"","url":"https://api.github.com/users/EPashkin","html_url":"https://github.com/EPashkin","followers_url":"https://api.github.com/users/EPashkin/followers","following_url":"https://api.github.com/users/EPashkin/following{/other_user}","gists_url":"https://api.github.com/users/EPashkin/gists{/gist_id}","starred_url":"https://api.github.com/users/EPashkin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EPashkin/subscriptions","organizations_url":"https://api.github.com/users/EPashkin/orgs","repos_url":"https://api.github.com/users/EPashkin/repos","events_url":"https://api.github.com/users/EPashkin/events{/privacy}","received_events_url":"https://api.github.com/users/EPashkin/received_events","type":"User","site_admin":false},"created_at":"2015-09-24T21:44:12Z","updated_at":"2015-09-24T21:44:12Z","body":"As result we have next \"types\" functions with out parameters by returning type:\r\n- () => (current mode) converted to (outs),\r\n- bool => converted to Option(outs),\r\n- others => converted to (ret, outs)"}}