Added @interface GSDisplayServer (ServiceOps)

This commit is contained in:
DavidHVernon 2022-05-05 15:40:00 -06:00 committed by Gregory Casamento
parent d3bf24b584
commit e50f0274ca
2 changed files with 40 additions and 0 deletions

View file

@ -180,6 +180,17 @@ APPKIT_EXPORT NSString *GSScreenNumber;
@end
// Testplant-MAL-10042016: support for checking running services i.e. bonjour
/* ----------------------------------------------------------------------- */
/* GNUstep Window operations */
/* ----------------------------------------------------------------------- */
@interface GSDisplayServer (ServiceOps)
- (BOOL) isServiceInstalled: (NSString*)serviceName;
- (BOOL) isServiceRunning: (NSString*)serviceName;
- (BOOL) isDiscoveryServiceInstalled;
- (BOOL) isDiscoveryServiceRunning;
@end
/* ----------------------------------------------------------------------- */
/* GNUstep Event Operations */
/* ----------------------------------------------------------------------- */

View file

@ -952,6 +952,35 @@ GSCurrentServer(void)
@end
/* ----------------------------------------------------------------------- */
/* GNUstep Service Operations */
/* ----------------------------------------------------------------------- */
@implementation GSDisplayServer (ServiceOps)
- (BOOL) isServiceInstalled: (NSString*)serviceName
{
[self subclassResponsibility: _cmd];
return NO;
}
- (BOOL) isServiceRunning: (NSString*)serviceName
{
[self subclassResponsibility: _cmd];
return NO;
}
- (BOOL) isDiscoveryServiceInstalled
{
[self subclassResponsibility: _cmd];
return NO;
}
- (BOOL) isDiscoveryServiceRunning
{
[self subclassResponsibility: _cmd];
return NO;
}
@end
/* ----------------------------------------------------------------------- */
/* GNUstep Event Operations */
/* ----------------------------------------------------------------------- */