Re: Media prefs
"Axel Dörfler" <[email protected]> Wed, 25 Feb 2004 18:37:15 +0100 CET
| Newsgroups | gmane.os.openbeos.mediakit |
|---|---|
| Message-ID | <19157460022-BeMail@nichtsnutz> |
Jérôme Duval <[email protected]> wrote: > > Anyway, how is that functionality implemented and how does it work, > > basically? > That launch_media_server() functionality ? It is a few BRoster calls > : > IsRunning(), Launch() with the right signature (application/x-vnd. > OpenBeOS-media-server in our case). The "flags" argument is completely unused? > the shutdown_media_server() call should be harder to implement > (i noted the states during the shutdown process). isn't it just something like (in pseudo code): port_id port = create_port(...); status = SendToServer(initiate shutdown, port); while (status == B_OK) { struct { int32 stage; char message[256]; } s; status = read_port(..., s, timeout); progress(s.stage, s.message, cookie); if (stage >= 100) break; } return B_OK; ? Bye, Axel.