X-Git-Url: https://git.distorted.org.uk/~mdw/disorder/blobdiff_plain/2a1c84fb58e4caaa7a91991846b36ef2cfa8dd9f..b0116b5c04b64e9352d1c63f0f667a1d9a5d5c11:/lib/queue.h diff --git a/lib/queue.h b/lib/queue.h index c287ebe..9bad76e 100644 --- a/lib/queue.h +++ b/lib/queue.h @@ -1,6 +1,6 @@ /* * This file is part of DisOrder. - * Copyright (C) 2004-2008 Richard Kettlewell + * Copyright (C) 2004-2009 Richard Kettlewell * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -220,6 +220,12 @@ struct queue_entry { /** @brief Decoder (or player) process ID */ pid_t pid; + + /** @brief Termination signal sent to subprocess + * + * Used to supress 'terminated' messages. + */ + int killed; }; void queue_insert_entry(struct queue_entry *b, struct queue_entry *n); @@ -238,6 +244,8 @@ int queue_unmarshall_vec(struct queue_entry *q, int nvec, char **vec, char *queue_marshall(const struct queue_entry *q); /* marshall @q@ into a UTF-8 string */ +void queue_free(struct queue_entry *q, int rest); + #endif /* QUEUE_H */ /*