diff options
| author | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-06-28 16:38:03 +0200 | 
|---|---|---|
| committer | Sander Vrijders <sander.vrijders@intec.ugent.be> | 2016-06-28 16:45:45 +0200 | 
| commit | 99d19307fae8f1370f52a62aee88fded624ad464 (patch) | |
| tree | 36b94730d8690c2d131f39b3cc3ff715674f9fcc /include | |
| parent | 0d789ed8d938cc342c8f2138280795a1d5a61e3d (diff) | |
| download | ouroboros-99d19307fae8f1370f52a62aee88fded624ad464.tar.gz ouroboros-99d19307fae8f1370f52a62aee88fded624ad464.zip | |
lib, irmd, ipcpd: Change pid to api
Changes the variable name as well to API instead of PID.
Diffstat (limited to 'include')
| -rw-r--r-- | include/ouroboros/ipcp.h | 30 | ||||
| -rw-r--r-- | include/ouroboros/sockets.h | 2 | 
2 files changed, 16 insertions, 16 deletions
| diff --git a/include/ouroboros/ipcp.h b/include/ouroboros/ipcp.h index 0c0afbe7..f5657b64 100644 --- a/include/ouroboros/ipcp.h +++ b/include/ouroboros/ipcp.h @@ -34,55 +34,55 @@ struct ipcp;  /* Returns the process id */  pid_t ipcp_create(enum ipcp_type ipcp_type); -int   ipcp_destroy(pid_t pid); +int   ipcp_destroy(pid_t api); -int   ipcp_reg(pid_t   pid, +int   ipcp_reg(pid_t   api,                 char ** difs,                 size_t  difs_size); -int   ipcp_unreg(pid_t   pid, +int   ipcp_unreg(pid_t   api,                   char ** difs,                   size_t  difs_size); -int   ipcp_enroll(pid_t  pid, +int   ipcp_enroll(pid_t  api,                    char * dif_name,                    char * n_1_dif); -int   ipcp_bootstrap(pid_t              pid, +int   ipcp_bootstrap(pid_t              api,                       dif_config_msg_t * conf);  /* Flow related ops, these go from IRMd to IPCP */ -int   ipcp_name_reg(pid_t  pid, +int   ipcp_name_reg(pid_t  api,                      char * name); -int   ipcp_name_unreg(pid_t  pid, +int   ipcp_name_unreg(pid_t  api,                        char * name); -int   ipcp_flow_alloc(pid_t         pid, +int   ipcp_flow_alloc(pid_t         api,                        int           port_id, -                      pid_t         n_pid, +                      pid_t         n_api,                        char *        dst_name,                        char *        src_ae_name,                        enum qos_cube qos); -int   ipcp_flow_alloc_resp(pid_t pid, +int   ipcp_flow_alloc_resp(pid_t api,                             int   port_id, -                           pid_t n_pid, +                           pid_t n_api,                             int   response);  /* These operations go from the IPCP to the IRMd */  /* Returns the port_id */ -int   ipcp_flow_req_arr(pid_t  pid, +int   ipcp_flow_req_arr(pid_t  api,                          char * dst_name,                          char * src_ae_name); -int   ipcp_flow_alloc_reply(pid_t pid, +int   ipcp_flow_alloc_reply(pid_t api,                              int   port_id,                              int   response);  /*   * This operation can go both ways - * pid == 0 means the IRMd is the destination + * api == 0 means the IRMd is the destination   */ -int   ipcp_flow_dealloc(pid_t pid, +int   ipcp_flow_dealloc(pid_t api,                          int   port_id); diff --git a/include/ouroboros/sockets.h b/include/ouroboros/sockets.h index 0a215a76..ce7876b3 100644 --- a/include/ouroboros/sockets.h +++ b/include/ouroboros/sockets.h @@ -46,7 +46,7 @@ typedef IpcpMsg ipcp_msg_t;  #define IPCP_MSG_BUF_SIZE IRM_MSG_BUF_SIZE  /* Returns the full socket path of an IPCP */ -char *      ipcp_sock_path(pid_t pid); +char *      ipcp_sock_path(pid_t api);  int         server_socket_open(char * file_name);  int         client_socket_open(char * file_name); | 
