Age | Commit message (Collapse) | Author | Files | Lines |
|
Change-Id: I89a75a036c60097fb898ab8723007ca6ebfc7f39
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Internally, the binder can need to convert
afb_request to xreq and conversely.
Exporting this facilities is good.
Change-Id: I5bb01d701eee0ac30ad6ce490609f6124a9d5860
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
This replacement greatly improves the code.
Change-Id: If3fd6e6080eda2268ccf551998f99af01799be29
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I2fd35e8ed59c28f4283be698a2586cdae5f7c8cf
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Ic1d5cb208c636d3261e1a96c4a81b488cb84a60e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The apis starting with a $ (dollar) will not be
tracked by hooks
Change-Id: I3b83458c288ef1eb27993d4c71785b32e5a72deb
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Iaa3ce3ee9188e3ddaf6ee70964963d29df78689f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Provide a mutex locked internal function for getting
the event loop: get_sd_event_locked
Change-Id: I2635f901b3ec0fcf2c52f569f4c57cfd046601af
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Ifc5adbdc92c3d034c92dd432c72057f3267c4964
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I6d906c31cdcf07c5404f1eb81cd44683976465f7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I45ae5a702b83dabe081b625b4bcaf5de33ffa1e6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Ic11ebf7e569160dd25e66a1273904dfcd82bdeb8
Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
|
|
Change-Id: I636b95459715f3b272509eb76e304a49593fb527
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Exclude from the search of bindings any
directory starting with a dot (.) by default.
It is possible to reactivate the prvious behaviour
by defining the following preprocessor variables
- AFB_API_SO_ACCEPT_DOT_PREFIXED_DIRS
When this variable is defined, the directories
starting with a dot are searched except
if their name is "." or ".." or ".debug"
- AFB_API_SO_ACCEPT_DOT_DEBUG_DIRS
When this variable is defined and the variable
AFB_API_SO_ACCEPT_DOT_PREFIXED_DIRS is also defined
scans any directory not being "." or "..".
The previous behaviour was like difining the 2 variables,
meaning that only . and .. were excluded from the search.
This change is intended to definitely solve the issue
SPEC-662. Yocto installed the debugging symbols in the
subdirectory .debug. For example the binding.so also
had a .debug/binding.so file attached. Opening that
debug file made dlopen crashing.
See https://sourceware.org/bugzilla/show_bug.cgi?id=22101
Bug-AGL: SPEC-662
Change-Id: Ic38a83aaa5f16d938e504aba66597bb9a219c193
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Icdee4029f11dcb6c0f75e945e0b411ea63654afe
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I0cd2d09f97fac7a1976d2bfcd5ab616472bf970a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The option --cpp or -x tell to produce a C++ output
that uses the 'constexpr' c++ feature.
Change-Id: I4eda4d21260573acbb01057ed95476bd4fc7ebe5
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change signal treatment when exit is called
internally by sig-monitor.
Change-Id: Ieb6261b2143811d7abcbc49b134e919c8c5626dc
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I456a08dccf65d1a188e7bb7e0a6ab905ae823a25
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Add mimetypes for common extensions for conformance to
https://www.w3.org/TR/widgets/#rule-for-identifying-the-media-type-of-a-file
Change-Id: I3ae51afbbc2916b7237e4fa546392ec7ec5ea42a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The case of unicens service that can be here or not creates
problem to the binding 4a when the service is not here.
This commits makes the requirement of ws-client
socket optional. This unblocks the situation but need to
be fixed later.
Bug-AGL: SPEC-1151
Change-Id: I569fa781c003492a4c6a7ad84c5b140ecdb05b65
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I8362d8d7bf0f11a41ef2275614e9ef2bcf0fee29
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Ie07a9bc4f930a0ecd2102a94e7f5f7b0daa705ef
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Sending the signal while not being sure that is is
expected could be a race condition. Taking the mutex
avoids it.
In the same time, switch to broadcasting.
Change-Id: I3f43d0d860cccc61ec140ceef223f572f806872c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The following environment variables allows several
setting by the environment:
* AFB_TRACEREQ, AFB_TRACEDITF, AFB_TRACESVC, AFB_TRACEEVT
These variables allows setting of options --tracereq,
--traceditf, --tracesvc, --traceevt
* AFB_LDPATHS
Set the option --ldpaths
Change-Id: I22700c658ce3fa1ceb15eab8f67adaaf41627b8f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
This new version use an eventfd to unlock the
event loop when needed. This reduce the count
of sd_event needed.
Bug-AGL: SPEC-1091
Change-Id: I9bc273e89ab1a70ccc2187c2571e68c9c771ee25
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
This version loops to write very long data on
websockets.
Bug-AGL: SPEC-1091
Change-Id: I8f17e75e4ef483be29fa8cae2c0af159783ec2c6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
The option ALLOW_NO_BINDER is removed and the option
ONLY_DEVTOOLS is introduced.
Change-Id: Ia19eb977ee25a3871582605028fdef75e552363f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
|
|
* If the package is natively compile, the gcc used is the
host gcc, and host gcc version must be >4.9. This is unneeded
for the mode ALLOW_NO_BINDER (like in native).
Signed-off-by: Ronan Le Martret <ronan.lemartret@iot.bzh>
|
|
Change-Id: I6ff16055597d36290f50b40d6dfe960aea691652
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Because a systemd event loop can not be reentered
while evaluating an event callback, the event loop
was removed from the threads. It had the effect to
enter in deadlock when calling a synchronous call
while in an event callback.
Queueing a job solves the issue.
But because using queued job has implications on
libafbws, a fake job manager is added for libafbws.
Change-Id: Id793bea55743790082eaab48cd4cc87f7993772a
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
When missing components are detected, allows to not compile
the binder if ALLOW_NO_BINDER is ON
Change-Id: I0fb27844e3f36d4dd643bdf250f05b4f6769bc53
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Id82c624f695a229023447c16652bcc912b6d6fed
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I3c158598da70089b9646233c632f14f62f1baa15
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Calling synchronously a verb on an event of the same
API was blocking.
Change-Id: I58a988c6df8c60cd3a38c3cdff23d7be8b6be54e
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: If46ca2fa34a080b7087edb4e0da109c5ee85b14f
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I16620f12719c222c0da03caf330a865149fe9051
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I6692f9089be355995d5caf979f4344ed3b8337a7
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: If0ff0f491e0fd8267137aa742d7acbe0157f88ad
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I4035a59d125e0768b0366c3dc5e7509e416ab9c6
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: If36c9210f0982ba35299de52f0c8fd96e7c836e2
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Ic3b0ec8e7bcbf21f7ae3a9f2b1a5719118a7912d
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I88026384d3f5e98659fba2bb774e41e931d45f51
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I1e8ca2adfec5bf7df5a7da02e6d093ae099ec9a3
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I0aa8a82c0bbf709aa380ef7e5efe2e4ebaf454c0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Also the function afb_session_get always create
a session even if 'created' is NULL
Change-Id: Ia5ac1231e1d61e92cb9bbc07c968e3000d6864ff
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I828e0498bc68c9f1d1635a886e0a93fcb2d2389c
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: I05850b05dc6747563ef38800821bfcaf5c45b5d0
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|
|
Change-Id: Ib8a66af30ea2438248adb66c9a95ac82663ec223
Signed-off-by: José Bollo <jose.bollo@iot.bzh>
|