path: root/src/pies.h
diff options
Diffstat (limited to 'src/pies.h')
1 files changed, 13 insertions, 4 deletions
diff --git a/src/pies.h b/src/pies.h
index 02211a2..68a2ff5 100644
--- a/src/pies.h
+++ b/src/pies.h
@@ -137,7 +137,9 @@ enum pies_comp_mode
#define CF_DISABLED 0x01 /* The componenet is disabled */
-#define CF_PRECIOUS 0x02 /* The component is precious (cannot be disabled) */
+#define CF_PRECIOUS 0x02 /* The component is precious (should not
+ be disabled) */
+#define CF_WAIT 0x04
struct component
@@ -152,6 +154,7 @@ struct component
gl_list_t depend; /* Dependency targets */
int flags; /* CF_ bitmask */
size_t max_instances; /* Maximum number of running instances */
+ int socket_type; /* Socket type */
char *rmfile; /* Try to remove this file before starting */
struct pies_privs privs; /* UID/GIDS+groups to run under */
mode_t umask; /* Umask to install before starting */
@@ -229,9 +232,12 @@ struct grecs_keyword *find_component_keyword (const char *ident);
struct pies_url
char *string;
- char *proto;
+ char *scheme;
char *host;
+ char *port_s;
int port;
+ char *proto_s;
+ int proto;
char *path;
char *user;
char *passwd;
@@ -244,9 +250,12 @@ void pies_url_destroy (struct pies_url **purl);
const char * pies_url_get_arg (struct pies_url *url, const char *argname);
void pies_pause (void);
-int register_listener (int fd);
+int register_socket (int socktype, int fd);
int pass_fd (const char *socket, int fd, unsigned time_out);
-int create_socket (struct pies_url *url, const char *user, mode_t umask);
+int create_socket (struct pies_url *url, int socket_type,
+ const char *user, mode_t umask);
+int disable_socket (int fd);
+int enable_socket (int fd);
int parse_limits (limits_record_t *plrec, char *str, char **endp);

Return to:

Send suggestions and report system problems to the System administrator.