mirror of
https://gitlab.com/freepascal.org/lazarus/lazarus.git
synced 2025-05-04 03:05:01 +02:00
38 lines
1.3 KiB
ObjectPascal
38 lines
1.3 KiB
ObjectPascal
{
|
|
*****************************************************************************
|
|
* *
|
|
* See the file COPYING.modifiedLGPL.txt, included in this distribution, *
|
|
* for details about the copyright. *
|
|
* *
|
|
* This program is distributed in the hope that it will be useful, *
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. *
|
|
* *
|
|
*****************************************************************************
|
|
}
|
|
unit lazdaemonapp;
|
|
|
|
interface
|
|
|
|
uses daemonapp;
|
|
|
|
Type
|
|
TLazDaemonApplication = Class(TCustomDaemonApplication)
|
|
Procedure CreateDaemonInstance(Var ADaemon : TCustomDaemon; DaemonDef : TDaemonDef); override;
|
|
end;
|
|
|
|
implementation
|
|
|
|
uses classes,lresources;
|
|
|
|
Procedure TLazDaemonApplication.CreateDaemonInstance(Var ADaemon : TCustomDaemon; DaemonDef : TDaemonDef);
|
|
|
|
begin
|
|
ADaemon:=DaemonDef.DaemonClass.Create(Self);
|
|
end;
|
|
|
|
Initialization
|
|
RegisterInitComponentHandler(TComponent,@InitLazResourceComponent);
|
|
RegisterDaemonApplicationClass(TLazDaemonApplication)
|
|
end.
|