Subversion Repositories MLServ

Rev

Go to most recent revision | Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4 nishi 1
/* $Id: newlist.c 4 2024-09-24 18:35:15Z nishi $ */
2
 
3
#include "ms_newlist.h"
4
 
5
#include <stdio.h>
6
#include <stdlib.h>
7
#include <string.h>
8
 
9
#include <cm_ipc.h>
10
 
11
int ms_handle_newlist(int argc, char** argv, int start) {
12
	int i;
13
	if(argc - start != 2) {
14
		fprintf(stderr, "Usage: newlist name description\n");
15
		return 1;
16
	}
17
	char* name = argv[start];
18
	char* description = argv[start + 1];
19
	int sock = cm_ipc_connect();
20
	if(sock < 0) {
21
		fprintf(stderr, "IPC connection failure\n");
22
		return 1;
23
	}
24
	return 0;
25
}