Skip to content
Projeler
Gruplar
Parçacıklar
Yardım
Yükleniyor...
Oturum aç / Kaydol
Gezinmeyi değiştir
S
scom
Proje
Proje
Ayrıntılar
Etkinlik
Cycle Analytics
Depo (repository)
Depo (repository)
Dosyalar
Kayıtlar (commit)
Dallar (branch)
Etiketler
Katkıda bulunanlar
Grafik
Karşılaştır
Grafikler
Konular (issue)
0
Konular (issue)
0
Liste
Pano
Etiketler
Kilometre Taşları
Birleştirme (merge) Talepleri
0
Birleştirme (merge) Talepleri
0
CI / CD
CI / CD
İş akışları (pipeline)
İşler
Zamanlamalar
Grafikler
Paketler
Paketler
Wiki
Wiki
Parçacıklar
Parçacıklar
Üyeler
Üyeler
Collapse sidebar
Close sidebar
Etkinlik
Grafik
Grafikler
Yeni bir konu (issue) oluştur
İşler
Kayıtlar (commit)
Konu (issue) Panoları
Kenar çubuğunu aç
SulinOS
scom
Commits
5aaf314d
Kaydet (Commit)
5aaf314d
authored
May 14, 2018
tarafından
Suleyman Poyraz
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Lanet olası boş lisste döndürme hatası yamandı.
üst
0f7b6b53
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
11 additions
and
4 deletions
+11
-4
.gitignore
.gitignore
+3
-0
Core.xml
scom/models/Core.xml
+2
-2
bus.c
scom/src/bus.c
+1
-1
loop.c
scom/src/loop.c
+1
-1
pydbus.c
scom/src/pydbus.c
+4
-0
No files found.
.gitignore
Dosyayı görüntüle @
5aaf314d
...
...
@@ -108,3 +108,6 @@ install_manifest.txt
Makefile
cmake_install.cmake
#Test file
scom_root
scom
scom/models/Core.xml
Dosyayı görüntüle @
5aaf314d
...
...
@@ -10,11 +10,11 @@
<arg
name=
"package"
type=
"s"
direction=
"in"
/>
<annotation
name=
"org.freedesktop.DBus.Method.NoReply"
value=
"true"
/>
</method>
<method
name=
"listModelApplications"
action_id=
""
>
<method
name=
"listModelApplications"
action_id=
"
tr.org.sulin.scom.listModelApplications
"
>
<arg
name=
"model"
type=
"s"
direction=
"in"
/>
<arg
name=
"apps"
type=
"as"
direction=
"out"
/>
</method>
<method
name=
"listApplicationModels"
action_id=
""
>
<method
name=
"listApplicationModels"
action_id=
"
tr.org.sulin.scom.listApplicationModels
"
>
<arg
name=
"app"
type=
"s"
direction=
"in"
/>
<arg
name=
"models"
type=
"as"
direction=
"out"
/>
</method>
...
...
scom/src/bus.c
Dosyayı görüntüle @
5aaf314d
...
...
@@ -59,7 +59,6 @@ bus_send(DBusMessage *bus_msg)
*/
dbus_uint32_t
serial
=
0
;
dbus_connection_send
(
bus_conn
,
bus_msg
,
&
serial
);
dbus_connection_flush
(
bus_conn
);
}
...
...
@@ -94,6 +93,7 @@ bus_reply_object(DBusMessage *bus_msg, PyObject *py_obj, char *signature)
// If signature is not null, append Python object to message
if
(
strcmp
(
signature
,
""
)
!=
0
)
{
PyObject
*
py_tuple
;
if
(
!
PyTuple_Check
(
py_obj
))
{
py_tuple
=
PyTuple_New
(
1
);
PyTuple_SetItem
(
py_tuple
,
0
,
py_obj
);
...
...
scom/src/loop.c
Dosyayı görüntüle @
5aaf314d
...
...
@@ -214,7 +214,7 @@ filter_func(DBusConnection *conn, DBusMessage *bus_msg, void *data)
if
(
strcmp
(
config_interface
,
iface
)
==
0
&&
strcmp
(
path
,
"/"
)
==
0
)
{
// "setLocale" and "cancel" methods are handled in main process
if
(
strcmp
(
method
,
"setLocale"
)
==
0
||
strcmp
(
method
,
"cancel"
)
==
0
||
strcmp
(
method
,
"listRunning"
)
==
0
)
{
handle_core_message
(
bus_msg
,
path
,
iface
,
method
,
sender
,
py_args
);
handle_core_message
(
bus_msg
,
path
,
iface
,
method
,
sender
,
py_args
);
}
else
{
// Else, handle in child process
...
...
scom/src/pydbus.c
Dosyayı görüntüle @
5aaf314d
...
...
@@ -292,6 +292,10 @@ pydbus_export_item(DBusMessageIter *iter, PyObject *obj, char *signature)
if
(
PyBytes_Check
(
obj
))
{
p
.
s
=
PyBytes_AsString
(
obj
);
}
//If returned Unicode type return utf-8 coded string
if
(
PyUnicode_Check
(
obj
))
{
p
.
s
=
PyUnicode_AsUTF8
(
obj
);
}
else
{
// TODO: Raise error
p
.
s
=
""
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment