chibipub

experimental activitypub node in C
git clone git://jb55.com/chibipub
Log | Files | Refs | README | LICENSE

chibipub.c (220B)


      1 
      2 #include "chibipub.h"
      3 #include "env.h"
      4 
      5 #include <stdio.h>
      6 
      7 int init_chibipub(struct chibipub *pub)
      8 {
      9 	if (!(pub->hostname = get_hostname())) {
     10 		fprintf(stderr, "CHIBIPUB_HOST not set\n");
     11 		return 0;
     12 	}
     13 
     14 	return 1;
     15 }