1f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani/* Copyright (c) 2011, Code Aurora Forum. All rights reserved. 2f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * 3f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * Redistribution and use in source and binary forms, with or without 4f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * modification, are permitted provided that the following conditions are 5f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * met: 6f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * * Redistributions of source code must retain the above copyright 7f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * notice, this list of conditions and the following disclaimer. 8f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * * Redistributions in binary form must reproduce the above 9f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * copyright notice, this list of conditions and the following 10f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * disclaimer in the documentation and/or other materials provided 11f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * with the distribution. 12f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * * Neither the name of Code Aurora Forum, Inc. nor the names of its 13f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * contributors may be used to endorse or promote products derived 14f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * from this software without specific prior written permission. 15f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * 16f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * THIS SOFTWARE IS PROVIDED "AS IS" AND ANY EXPRESS OR IMPLIED 17f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 18f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT 19f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS 20f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR 23f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, 24f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE 25f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 26f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani * 28f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani */ 29f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#ifndef LOC_ENG_DMN_CONN_GLUE_MSG_H 30f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#define LOC_ENG_DMN_CONN_GLUE_MSG_H 31f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani 32f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#ifdef __cplusplus 33f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniextern "C" { 34f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#endif /* __cplusplus */ 35f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani 36f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani 37f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#include <linux/types.h> 38f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#include "loc_eng_dmn_conn_glue_pipe.h" 39f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani 40f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniint loc_eng_dmn_conn_glue_msgget(const char * q_path, int mode); 41f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniint loc_eng_dmn_conn_glue_msgremove(const char * q_path, int msgqid); 42f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniint loc_eng_dmn_conn_glue_msgsnd(int msgqid, const void * msgp, size_t msgsz); 43f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniint loc_eng_dmn_conn_glue_msgrcv(int msgqid, void *msgp, size_t msgsz); 44f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniint loc_eng_dmn_conn_glue_msgflush(int msgqid); 45f77c85bb51137f5ba854184e5e9194197027438aAjay Dudaniint loc_eng_dmn_conn_glue_msgunblock(int msgqid); 46f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani 47f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#ifdef __cplusplus 48f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani} 49f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#endif /* __cplusplus */ 50f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani 51f77c85bb51137f5ba854184e5e9194197027438aAjay Dudani#endif /* LOC_ENG_DMN_CONN_GLUE_MSG_H */ 52