waffle

user and group backend daemon
git clone git://git.2f30.org/waffle
Log | Files | Refs | LICENSE

dummy.c (598B)


      1 /* See LICENSE file for copyright and license details. */
      2 #include <string.h>
      3 #include "waffle.h"
      4 
      5 static int
      6 init(void)
      7 {
      8 	return -1;
      9 }
     10 
     11 static void
     12 term(void)
     13 {
     14 }
     15 
     16 static int
     17 pwbyname(const char *name, struct passwd *pw)
     18 {
     19 	return -1;
     20 }
     21 
     22 static int
     23 pwbyuid(uid_t uid, struct passwd *pw)
     24 {
     25 	return -1;
     26 }
     27 
     28 static int
     29 grbyname(const char *name, struct group *gr)
     30 {
     31 	return -1;
     32 }
     33 
     34 static int
     35 grbygid(gid_t gid, struct group *gr)
     36 {
     37 	return -1;
     38 }
     39 
     40 struct backend_ops dummy_ops = {
     41 	.init = init,
     42 	.term = term,
     43 	.pwbyname = pwbyname,
     44 	.pwbyuid = pwbyuid,
     45 	.grbyname = grbyname,
     46 	.grbygid = grbygid,
     47 };