diff options
| author | David Sommerseth <davids@redhat.com> | 2009-10-21 07:49:39 +0200 |
|---|---|---|
| committer | David Sommerseth <davids@redhat.com> | 2009-10-21 07:49:39 +0200 |
| commit | 65342d2ed541c48ffd7bfb41f04118b7c99771f1 (patch) | |
| tree | 823e8dfe5ecb453ecdaa92732b2be5fc3a5d097f /server/parser | |
| parent | 95b2d2ffd3daba9c554ea655df887fbeed35f11c (diff) | |
Added another missing file
Diffstat (limited to 'server/parser')
| -rw-r--r-- | server/parser/parsethread.h | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/server/parser/parsethread.h b/server/parser/parsethread.h new file mode 100644 index 0000000..207f2d0 --- /dev/null +++ b/server/parser/parsethread.h @@ -0,0 +1,36 @@ +/* + * Copyright (C) 2009 Red Hat Inc. + * + * David Sommerseth <davids@redhat.com> + * + * Takes a standardised XML document (from parseToSQLdata()) and does + * the database operations based on that input + * + * This application is free software; you can redistribute it and/or modify it + * under the terms of the GNU General Public License as published by the Free + * Software Foundation; version 2. + * + * This application is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU + * General Public License for more details. + */ + +#ifndef _PARSETHREAD_H +#define _PARSETHREAD_H + +typedef enum { jbNONE, jbAVAIL } jobStatus; + +/** + * This struct is used for sending a parse job to a worker thread via POSIX MQ + */ +typedef struct { + jobStatus status; /**< Info about if job information*/ + unsigned int submid; /**< Work info: Numeric ID of the job being parsed */ + char filename[4092]; /**< Work info: Full filename of the report to be parsed*/ +} parseJob_t; + + +void *parsethread(void *thrargs); + +#endif |
