Skip to content

Commit

Permalink
add message
Browse files Browse the repository at this point in the history
  • Loading branch information
haipome committed Apr 28, 2017
1 parent 27939d0 commit 37d49fc
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 0 deletions.
5 changes: 5 additions & 0 deletions accessws/aw_main.c
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
# include "aw_depth.h"
# include "aw_order.h"
# include "aw_asset.h"
# include "aw_message.h"
# include "aw_listener.h"

const char *__process__ = "accessws";
Expand Down Expand Up @@ -126,6 +127,10 @@ int main(int argc, char *argv[])
if (ret < 0) {
error(EXIT_FAILURE, errno, "init asset fail: %d", ret);
}
ret = init_message();
if (ret < 0) {
error(EXIT_FAILURE, errno, "init messagefail: %d", ret);
}
ret = init_server();
if (ret < 0) {
error(EXIT_FAILURE, errno, "init server fail: %d", ret);
Expand Down
13 changes: 13 additions & 0 deletions accessws/aw_message.c
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
/*
* Description:
* History: [email protected], 2017/04/28, create
*/

# include "aw_config.h"
# include "aw_message.h"

int init_message(void)
{
return 0;
}

12 changes: 12 additions & 0 deletions accessws/aw_message.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
/*
* Description:
* History: [email protected], 2017/04/28, create
*/

# ifndef _AW_MESSAGE_H_
# define _AW_MESSAGE_H_

int init_message(void);

# endif

0 comments on commit 37d49fc

Please sign in to comment.