aboutsummaryrefslogblamecommitdiffstatshomepage
path: root/src/worker.h
blob: bf603df1471122a8d7821e7163ce9093d87c3e9c (plain) (tree)
1
2
3
4
5
6
7
8
9
10






                                                          


                    




                   
              
 
                                    

                                     
                                                          

      
/*
 * Copyright (c) 2022 Egor Tensin <Egor.Tensin@gmail.com>
 * This file is part of the "cimple" project.
 * For details, see https://github.com/egor-tensin/cimple.
 * Distributed under the MIT License.
 */

#ifndef __WORKER_H__
#define __WORKER_H__

struct settings {
	char *host;
	char *port;
};

struct worker;

int worker_create(struct worker **);
void worker_destroy(struct worker *);

int worker_main(struct worker *, const struct settings *);

#endif