Subversion Repositories MLServ

Rev

Go to most recent revision | Blame | Compare with Previous | Last modification | View Log | Download | RSS feed

/* $Id: newlist.c 4 2024-09-24 18:35:15Z nishi $ */

#include "ms_newlist.h"

#include <stdio.h>
#include <stdlib.h>
#include <string.h>

#include <cm_ipc.h>

int ms_handle_newlist(int argc, char** argv, int start) {
        int i;
        if(argc - start != 2) {
                fprintf(stderr, "Usage: newlist name description\n");
                return 1;
        }
        char* name = argv[start];
        char* description = argv[start + 1];
        int sock = cm_ipc_connect();
        if(sock < 0) {
                fprintf(stderr, "IPC connection failure\n");
                return 1;
        }
        return 0;
}