<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html;charset=ISO-8859-15"
http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
Michael 'Mickey' Lauer schrieb:
<blockquote cite="mid:1256135824.14897.47.camel@opal" type="cite">
<pre wrap="">Am Mittwoch, den 21.10.2009, 16:33 +0200 schrieb Matthias Huber:
</pre>
<blockquote type="cite">
<pre wrap="">Sorry when i am nervy, but i don't find a documentation about vala's stdout:
when i pipe my program (because i don't want to rewrite my c-code
completele with vala)
into my program, or even into tail, the prog doesn't show any output with my
stdout.printf("sonemting")
is there a stdout.flush() ?
yes there is one.
but that doesn't help me.
Any Idea ?
</pre>
</blockquote>
<pre wrap=""><!---->
Try appending \n. This is not Vala-specific though, it's plain old posix
stdout.
</pre>
</blockquote>
Thank you, now it is working so far.<br>
<br>
But for initially getting the provider from dbus, i need to do a call,
but i can not find out, how the function prototype has to be declared
and also after that, howto get the provider itself, i.e: (this doesn't
work):<br>
<br>
// async dbus call<br>
this.device.GetStatus( reply_handler );<br>
<br>
what type is here given back ?<br>
<br>
<br>
private void reply_handler (string[] ids, GLib.Error e) {<br>
// callback for async dbus call<br>
if (e != null) {<br>
critical ("%s", e.message);<br>
return;<br>
}<br>
try {<br>
foreach (string id in ids)<br>
message ("Answer: %s", id);<br>
}<br>
catch (GLib.Error err) {<br>
critical ("%s", err.message);<br>
}<br>
}<br>
<br>
</body>
</html>