aboutsummaryrefslogblamecommitdiff
path: root/include/evanix.h
blob: 1d3d661867fd39b97f0561c980e1e04625a4102b (plain) (tree)
1
2
3
4
5
6
7
8
                    
                    
                   
 

                 

                




                                



                         
                           
                             
                                
                          
                     
                                 
                            
                          
                                                                  





                                        
#include <sqlite3.h>
#include <stdbool.h>
#include <stdint.h>

#include "jobs.h"

#ifndef EVANIX_H

struct estimate {
	struct sqlite3 *db;
	sqlite3_stmt *statement;
};

struct evanix_opts_t {
	bool isflake;
	bool isdryrun;
	bool ispipelined;
	bool solver_report;
	bool close_unused_fd;
	bool check_cache_status;
	bool break_evanix;
	char *system;
	struct estimate estimate;
	uint32_t max_builds;
	uint32_t max_time;
	int (*solver)(struct job **, struct job_clist *, int32_t);
};

extern struct evanix_opts_t evanix_opts;

#define EVANIX_H
#endif