35 lines
1.0 KiB
C
35 lines
1.0 KiB
C
/*
|
|
* job_queue.h
|
|
*
|
|
* Copyright (C) 2018 by Bogomil Vasilev <b.vasilev@smirky.net>
|
|
*
|
|
* This file is part of Remote Management and Provisioning System (RMPS).
|
|
*
|
|
* RMPS 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, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* RMPS 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.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with RMPS. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef JOB_QUEUE_H
|
|
#define JOB_QUEUE_H
|
|
|
|
#include "protocol.h"
|
|
|
|
//void* create_job(void *arg);
|
|
int start_msg_queue(void);
|
|
void free_queue(int id);
|
|
int start_job_queue(int poolsize);
|
|
int add_msg_to_queue(int id, struct msg_t buf);
|
|
|
|
#endif /* JOB_QUEUE_H */
|
|
|