~peter-pearse/ubuntu/oneiric/rtkit/prop001

« back to all changes in this revision

Viewing changes to sd-daemon.h

  • Committer: Bazaar Package Importer
  • Author(s): Alessio Treglia
  • Date: 2011-03-09 22:05:48 UTC
  • mfrom: (1.2.7 sid)
  • Revision ID: james.westby@ubuntu.com-20110309220548-ujamlen53apzcan0
Tags: 0.10-1
New upstream release.

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
/*-*- Mode: C; c-basic-offset: 8 -*-*/
 
1
/*-*- Mode: C; c-basic-offset: 8; indent-tabs-mode: nil -*-*/
2
2
 
3
3
#ifndef foosddaemonhfoo
4
4
#define foosddaemonhfoo
67
67
  See sd-daemon(7) for more information.
68
68
*/
69
69
 
 
70
#ifndef _sd_printf_attr_
70
71
#if __GNUC__ >= 4
71
72
#define _sd_printf_attr_(a,b) __attribute__ ((format (printf, a, b)))
 
73
#else
 
74
#define _sd_printf_attr_(a,b)
 
75
#endif
 
76
#endif
 
77
 
 
78
#ifndef _sd_hidden_
 
79
#if (__GNUC__ >= 4) && !defined(SD_EXPORT_SYMBOLS)
72
80
#define _sd_hidden_ __attribute__ ((visibility("hidden")))
73
81
#else
74
 
#define _sd_printf_attr_(a,b)
75
82
#define _sd_hidden_
76
83
#endif
 
84
#endif
77
85
 
78
86
/*
79
87
  Log levels for usage on stderr:
171
179
 
172
180
/*
173
181
  Informs systemd about changed daemon state. This takes a number of
174
 
  newline seperated environment-style variable assignments in a
 
182
  newline separated environment-style variable assignments in a
175
183
  string. The following variables are known:
176
184
 
177
185
     READY=1      Tells systemd that daemon startup is finished (only
244
252
  fine. You should NOT protect them with a call to this function. Also
245
253
  note that this function checks whether the system, not the user
246
254
  session is controlled by systemd. However the functions above work
247
 
  for both session and system services.
 
255
  for both user and system services.
248
256
 
249
257
  See sd_booted(3) for more information.
250
258
*/