本文整理汇总了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
}
}
示例2: destroy
func (s *Setting) destroy() {
if s.core != nil {
s.core.Unref()
s.core = nil
}
dbus.UnInstallObject(s)
}
示例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
}
示例4: destroyAgent
func destroyAgent(a *agent) {
for key, ch := range a.pendingKeys {
close(ch)
delete(a.pendingKeys, key)
}
nmAgentUnregister()
dbus.UnInstallObject(a)
}
示例5: clearConnectionSessions
func (m *Manager) clearConnectionSessions() {
m.connectionSessionsLock.Lock()
defer m.connectionSessionsLock.Unlock()
for _, session := range m.connectionSessions {
dbus.UnInstallObject(session)
}
m.connectionSessions = nil
}
示例6: finalize
func finalize() {
finiGSettings()
endKeyBinding()
dbus.UnInstallObject(_manager)
_manager = nil
logger.EndTracing()
}
示例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)
}
示例8: Stop
func Stop() {
if _sysInfo == nil {
return
}
_sysInfo.logger.EndTracing()
dbus.UnInstallObject(_sysInfo)
_sysInfo = nil
}
示例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")
}
示例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")
}
示例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)
}
示例12: Stop
func Stop() {
if manager == nil {
return
}
destroyDbusDaemon()
DestroyManager(manager)
dbus.UnInstallObject(manager)
manager = nil
logger.EndTracing()
}
示例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)
}
示例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")
}
}
示例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]
}