2 Copyright © 1995-2007, The AROS Development Team. All rights reserved.
9 #include <proto/exec.h>
11 #include "camd_intern.h"
13 /*****************************************************************************
17 AROS_LH1(void, StartClusterNotify
,
20 AROS_LHA(struct ClusterNotifyNode
*,cn
,A0
),
23 struct CamdBase
*, CamdBase
, 37, Camd
)
26 void StartClusterNotify(struct ClusterNotifyNode *cn)
29 pointer to initialized ClusterNotifyNode structure
35 ClusterNotifyNode structure must remain valid until EndClusterNotify();
36 Will only signal added and removed clusters, not internal state changes.
39 struct ClusterNotifyNode cnn;
41 cnn.cnn_Task=IExec->FindTask(NULL);
42 cnn.cnn_SigBit=IExec->AllocSignal(-1);
43 StartClusterNotify(&cnn);
45 somewhere down the line...
47 Wait(1L<<cnn.cnn_SigBit)
48 printf("Cluster Changes have happened\n");
59 2001-01-12 ksvalast first created
60 2005-05-07 Lyle Hazelwood first implemented.
62 *****************************************************************************/
66 if(cn
== NULL
) return;
67 AddTail(&CB(CamdBase
)->clusnotifynodes
,(struct Node
*)&cn
->cnn_Node
);