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
4a2f62e4
Kaydet (Commit)
4a2f62e4
authored
Kas 21, 2009
tarafından
Bahadır Kandemir
Dosyalara gözat
Seçenekler
Dosyalara Gözat
İndir
Eposta Yamaları
Sade Fark
Use Py_ssize_t instead of int.
üst
fa0aba18
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
2 deletions
+3
-2
pydbus.c
comar/src/pydbus.c
+3
-2
No files found.
comar/src/pydbus.c
Dosyayı görüntüle @
4a2f62e4
...
...
@@ -138,6 +138,7 @@ pydbus_export_item(DBusMessageIter *iter, PyObject *obj, char *signature)
int
e
=
0
;
int
i
=
0
;
Py_ssize_t
pos
=
0
;
union
{
const
char
*
s
;
...
...
@@ -171,8 +172,8 @@ pydbus_export_item(DBusMessageIter *iter, PyObject *obj, char *signature)
// Get key and value signatures
sign_key
=
strsub
(
signature
,
2
,
3
);
sign_value
=
strsub
(
signature
,
3
,
strlen
(
signature
)
-
1
);
i
=
0
;
// Go to first index
while
(
PyDict_Next
(
obj
,
&
i
,
&
key
,
&
value
))
{
pos
=
0
;
// Go to first index
while
(
PyDict_Next
(
obj
,
&
pos
,
&
key
,
&
value
))
{
e
=
dbus_message_iter_open_container
(
&
sub
,
DBUS_TYPE_DICT_ENTRY
,
NULL
,
&
sub_dict
);
if
(
pydbus_export_item
(
&
sub_dict
,
key
,
sign_key
)
!=
0
||
pydbus_export_item
(
&
sub_dict
,
value
,
sign_value
)
!=
0
)
{
return
-
1
;
...
...
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