当前位置: 首页>>代码示例>>Golang>>正文


Golang dbus.UnInstallObject函数代码示例

本文整理汇总了Golang中pkg/linuxdeepin/com/lib/dbus.UnInstallObject函数的典型用法代码示例。如果您正苦于以下问题:Golang UnInstallObject函数的具体用法?Golang UnInstallObject怎么用?Golang UnInstallObject使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。


在下文中一共展示了UnInstallObject函数的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Golang代码示例。

示例1: destroy

func (m *EntryProxyerManager) destroy() {
	for _, entry := range m.Entries {
		dbus.UnInstallObject(entry)
	}
	dbus.UnInstallObject(m)
	if busdaemon != nil {
		pkgbus.DestroyDBusDaemon(busdaemon)
		busdaemon = nil
	}
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:10,代码来源:manager.go

示例2: destroy

func (s *Setting) destroy() {
	if s.core != nil {
		s.core.Unref()
		s.core = nil
	}
	dbus.UnInstallObject(s)
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:7,代码来源:settings.go

示例3: finalizeLibs

func finalizeLibs() {
	if power != nil {
		power.batGroup.Destroy()
		power.batGroup = nil
		dbus.UnInstallObject(power)
		power = nil
	}
	if upower != nil {
		libupower.DestroyUpower(upower)
		upower = nil
	}
	if login1 != nil {
		liblogin1.DestroyManager(login1)
		login1 = nil
	}
	if mediaKey != nil {
		libkeybinding.DestroyMediaKey(mediaKey)
		mediaKey = nil
	}
	if notifier != nil {
		libnotifications.DestroyNotifier(notifier)
		notifier = nil
	}

	player = nil
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:26,代码来源:init.go

示例4: destroyAgent

func destroyAgent(a *agent) {
	for key, ch := range a.pendingKeys {
		close(ch)
		delete(a.pendingKeys, key)
	}
	nmAgentUnregister()
	dbus.UnInstallObject(a)
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:8,代码来源:agent.go

示例5: clearConnectionSessions

func (m *Manager) clearConnectionSessions() {
	m.connectionSessionsLock.Lock()
	defer m.connectionSessionsLock.Unlock()
	for _, session := range m.connectionSessions {
		dbus.UnInstallObject(session)
	}
	m.connectionSessions = nil
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:8,代码来源:manager_connection.go

示例6: finalize

func finalize() {
	finiGSettings()
	endKeyBinding()

	dbus.UnInstallObject(_manager)
	_manager = nil
	logger.EndTracing()
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:8,代码来源:main.go

示例7: destroy

func (s *Setting) destroy() {
	s.lock.Lock()
	defer s.lock.Unlock()
	if s.core != nil {
		s.core.Unref()
		s.core = nil
	}
	dbus.UnInstallObject(s)
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:9,代码来源:setting.go

示例8: Stop

func Stop() {
	if _sysInfo == nil {
		return
	}

	_sysInfo.logger.EndTracing()
	dbus.UnInstallObject(_sysInfo)
	_sysInfo = nil
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:9,代码来源:system_info.go

示例9: setPropSources

func (s *Audio) setPropSources(v []*Source) {
	for _, o := range s.Sources {
		dbus.UnInstallObject(o)
	}
	for _, o := range v {
		dbus.InstallOnSession(o)
	}
	s.Sources = v
	dbus.NotifyChange(s, "Sources")
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:10,代码来源:audio_stub.go

示例10: setPropSinkInputs

func (s *Audio) setPropSinkInputs(v []*SinkInput) {
	for _, o := range s.SinkInputs {
		dbus.UnInstallObject(o)
	}
	for _, o := range v {
		dbus.InstallOnSession(o)
	}
	s.SinkInputs = v
	dbus.NotifyChange(s, "SinkInputs")
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:10,代码来源:audio_stub.go

示例11: destroyEntry

func (m *EntryManager) destroyEntry(appId string) {
	if e, ok := m.appEntries[appId]; ok {
		e.detachNormalApp()
		e.detachRuntimeApp()
		dbus.ReleaseName(e)
		dbus.UnInstallObject(e)
		logger.Info("destroyEntry:", appId)
	}
	delete(m.appEntries, appId)
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:10,代码来源:entry_manager.go

示例12: Stop

func Stop() {
	if manager == nil {
		return
	}

	destroyDbusDaemon()
	DestroyManager(manager)
	dbus.UnInstallObject(manager)
	manager = nil
	logger.EndTracing()
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:11,代码来源:main.go

示例13: destroy

func (self *Launcher) destroy() {
	if self.setting != nil {
		self.setting.destroy()
		launcher.setting = nil
	}
	if self.store != nil {
		storeApi.DestroyDStoreDesktop(self.store)
		self.store = nil
	}
	if self.appMonitor != nil {
		self.appMonitor.Close()
		self.appMonitor = nil
	}
	dbus.UnInstallObject(self)
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:15,代码来源:launcher.go

示例14: removeSinkInput

func (a *Audio) removeSinkInput(idx uint32) {
	var tryRemoveSinkInput *SinkInput
	var newSinkInputList []*SinkInput
	for _, si := range a.SinkInputs {
		if si.index == idx {
			tryRemoveSinkInput = si
		} else {
			newSinkInputList = append(newSinkInputList, si)
		}
	}

	if tryRemoveSinkInput != nil {
		dbus.UnInstallObject(tryRemoveSinkInput)
		a.SinkInputs = newSinkInputList
		dbus.NotifyChange(a, "SinkInputs")
	}
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:17,代码来源:audio_stub.go

示例15: removeConnectionSession

func (m *Manager) removeConnectionSession(session *ConnectionSession) {
	m.connectionSessionsLock.Lock()
	defer m.connectionSessionsLock.Unlock()

	dbus.UnInstallObject(session)

	i := m.getConnectionSessionIndex(session)
	if i < 0 {
		logger.Warning("connection session index is -1", session.sessionPath)
		return
	}

	copy(m.connectionSessions[i:], m.connectionSessions[i+1:])
	newlen := len(m.connectionSessions) - 1
	m.connectionSessions[newlen] = nil
	m.connectionSessions = m.connectionSessions[:newlen]
}
开发者ID:felixonmars,项目名称:dde-daemon,代码行数:17,代码来源:manager_connection.go


注:本文中的pkg/linuxdeepin/com/lib/dbus.UnInstallObject函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。