mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-09-19 14:57:32 +09:00
parent
b586913598
commit
2531de02eb
85 changed files with 68 additions and 1357 deletions
|
|
@ -9,10 +9,6 @@
|
|||
#include "nsXULAppAPI.h"
|
||||
#include "private/pprio.h"
|
||||
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
#include <cutils/properties.h>
|
||||
#endif // MOZ_WIDGET_GONK
|
||||
|
||||
namespace mozilla {
|
||||
namespace net {
|
||||
|
||||
|
|
@ -21,29 +17,13 @@ namespace {
|
|||
inline void
|
||||
StartService()
|
||||
{
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
char value[PROPERTY_VALUE_MAX] = { '\0' };
|
||||
property_get("init.svc.mdnsd", value, "");
|
||||
|
||||
if (strcmp(value, "running") == 0) {
|
||||
return;
|
||||
}
|
||||
property_set("ctl.start", "mdnsd");
|
||||
#endif // MOZ_WIDGET_GONK
|
||||
/*** STUB ***/
|
||||
}
|
||||
|
||||
inline void
|
||||
StopService()
|
||||
{
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
char value[PROPERTY_VALUE_MAX] = { '\0' };
|
||||
property_get("init.svc.mdnsd", value, "");
|
||||
|
||||
if (strcmp(value, "stopped") == 0) {
|
||||
return;
|
||||
}
|
||||
property_set("ctl.stop", "mdnsd");
|
||||
#endif // MOZ_WIDGET_GONK
|
||||
/*** STUB ***/
|
||||
}
|
||||
|
||||
class ServiceCounter
|
||||
|
|
@ -157,9 +137,6 @@ NS_IMPL_ISUPPORTS(nsDNSServiceDiscovery, nsIDNSServiceDiscovery)
|
|||
|
||||
nsDNSServiceDiscovery::~nsDNSServiceDiscovery()
|
||||
{
|
||||
#ifdef MOZ_WIDGET_GONK
|
||||
StopService();
|
||||
#endif
|
||||
}
|
||||
|
||||
nsresult
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue