lm_connection.c
changeset 31 afcdbbce5002
parent 30 21547232c875
child 38 34a2b880615c
equal deleted inserted replaced
30:21547232c875 31:afcdbbce5002
   427 								  handler->handler,
   427 								  handler->handler,
   428 								  type);
   428 								  type);
   429 		}
   429 		}
   430 		lua_pop (L, 1);
   430 		lua_pop (L, 1);
   431 	} else { // Unregister reply handler
   431 	} else { // Unregister reply handler
   432 #if 0
   432 #ifdef HAVE_LM_CONNECTION_UNREGISTER_REPLY_HANDLER
   433 		llm_handler_t *handler = luaL_checklm_handler (L, 2);
   433 		llm_handler_t *handler = luaL_checklm_handler (L, 2);
   434 		lm_connection_unregister_reply_handler (object -> connection,
   434 		lm_connection_unregister_reply_handler (object -> connection,
   435 		                                        handler -> handler);
   435 		                                        handler -> handler);
   436 #else
   436 #else
   437 		lua_pushnil (L);
   437 		W ("Sorry, your loudmouth have no unregister_reply_handler ()");
   438 		lua_pushliteral (L, "Sorry, lm_connection_unregister_reply_handler is not yet supported");
   438 		lua_pushnil (L);
       
   439 		lua_pushliteral (L, "Sorry, your loudmouth have no unregister_reply_handler ()");
   439 		return 2;
   440 		return 2;
   440 #endif
   441 #endif
   441 	}
   442 	}
   442 	lua_pop (L, 1);
   443 	lua_pop (L, 1);
   443 	return 1;
   444 	return 1;