[systemd-devel] [PATCH 04/12] Add some plymouth functionality to connect and send, messages

Didier Roche didrocks at ubuntu.com
Thu Jan 29 09:42:42 PST 2015


Le 28/01/2015 15:44, Zbigniew Jędrzejewski-Szmek a écrit :
> On Wed, Jan 28, 2015 at 02:22:04PM +0100, Didier Roche wrote:
>>  From 7afe9270e3210668053089caaff8a1dd790a48f5 Mon Sep 17 00:00:00 2001
>> From: Didier Roche <didrocks at ubuntu.com>
>> Date: Mon, 26 Jan 2015 17:07:32 +0100
>> Subject: [PATCH 04/12] Add some plymouth functionality to connect and send
>>   messages
>>
>> diff --git a/src/shared/plymouth.c b/src/shared/plymouth.c
>> index c4865dd..f7155c4 100644
>> --- a/src/shared/plymouth.c
>> +++ b/src/shared/plymouth.c
>> @@ -19,13 +19,96 @@
>>     along with systemd; If not, see <http://www.gnu.org/licenses/>.
>>   ***/
>>   
>> +#ifdef HAVE_PLYMOUTH
>> +#include <ply-boot-client.h>
>> +#endif
>> +
>>   #include <stdbool.h>
>>   #include <stdio.h>
>>   #include <stdlib.h>
>>   #include <unistd.h>
>>   
>> +#include "log.h"
>>   #include "plymouth.h"
>>   
>> +#ifdef HAVE_PLYMOUTH
>> +void plymouth_disconnected (void *user_data, ply_boot_client_t *client);
>> +void plymouth_update_failed(void *user_data, ply_boot_client_t *client);
>> +
>> +static ply_boot_client_t *plymouth_client = NULL;
>> +static ply_event_loop_t *plymouth_event_loop = NULL;
>> +#endif
>> +
>>   bool plymouth_running(void) {
>>           return access("/run/plymouth/pid", F_OK) >= 0;
>>   }
>> +
>> +#ifdef HAVE_PLYMOUTH
>> +bool plymouth_connect(void) {
> Is there a particular reason why this cannot return a normal int code?

No reason, I changed to 0 for connected, -1 for can't connect.

Other changes done, thanks!
Cheers,
Didier


More information about the systemd-devel mailing list