Report S2EVENT_CONNECT when a new SSID is selected.
[AROS.git] / workbench / fs / pipe / main.c
blob50e5b58a76885ff376624a9e1921c1db500c88c9
1 /*
2 * Copyright (C) 2011, The AROS Development Team. All rights reserved.
3 * Author: Jason S. McMullan <jason.mcmullan@gmail.com>
5 * Licensed under the AROS PUBLIC LICENSE (APL) Version 1.1
6 */
8 #include <proto/exec.h>
9 #include <proto/dos.h>
11 /* Trivial startup for AROS */
12 extern void handler(struct DosPacket *dp);
14 __startup void _main(void)
16 struct DosPacket *dp;
17 struct MsgPort *mp;
19 mp = &((struct Process *)FindTask(NULL))->pr_MsgPort;
21 WaitPort(mp);
23 dp = (struct DosPacket *)(GetMsg(mp)->mn_Node.ln_Name);
25 handler(dp);