CC ... -lsysadm -lvtcl -ltclx -ltcl -lsocket -lgen -lm#include <scoadmin/basicIncl.h> #include <scoadmin/callBack.h> #include <scoadmin/statusLst.h> #include <scoadmin/CAPI.h>
bmipSubmission_cl * FWInitObjectSubmission(frameWorkCClientData_cl *clientDataPtr, objectClass_pt objectClass);
#include <scoadmin/CAPI.h>main() { frameWorkCClientData_cl *clientDataPtr; bmipSubmission_cl *bmipSubmissionPtr1, *bmipSubmissionPtr2;
/* Initialize general SCOadmin data structure */ clientDataPtr=FWInitializeFrameWork();
/* Initialize class-specific SCOadmin data structures */
/* Initialize communications to the "sco device" class. */ bmipSubmissionPtr1=FWInitObjectSubmission(clientDataPtr, "sco device");
/* Initialize communications to the "acme disk" object class. */ bmipSubmissionPtr1=FWInitObjectSubmission(clientDataPtr, "acme disk");
/* ***************************************************** * Routines defined in FWClassParameters 3sadm, * FWClassOperations 3sadm, and FWClassExamine(3sadm) * go here... *******************************************************/ ....
/* Cleanup */ FWShutdownObjectSubmission(bmipSubmissionPtr1); FWShutdownObjectSubmission(bmipSubmissionPtr2); FWShutdownFrameWork(clientDataPtr); }