ded0b83151
FossilOrigin-Name: 8766275cac121ced2142c9dee80f2c21a0337e9eb65501961807aba8fca0f252
30 lines
600 B
C
30 lines
600 B
C
/*
|
|
* Treebird - Lightweight frontend for Pleroma
|
|
*
|
|
* Licensed under the BSD 3-Clause License
|
|
*/
|
|
|
|
#include "types.h"
|
|
#include <fcgiapp.h>
|
|
|
|
struct request_args*
|
|
request_args_create(REQUEST_T req, struct session* ssn, mastodont_t* api, void* _args)
|
|
{
|
|
struct request_args* args = malloc(sizeof(struct request_args));
|
|
if (!args)
|
|
perror("request_args_create: malloc");
|
|
args->req = req;
|
|
args->ssn = ssn;
|
|
args->args = _args;
|
|
return args;
|
|
}
|
|
|
|
|
|
void request_args_cleanup(struct request_args* args)
|
|
{
|
|
FCGX_Finish_r(args->req);
|
|
free(args->req);
|
|
free(args->ssn);
|
|
}
|
|
|