X-Git-Url: https://gerrit.o-ran-sc.org/r/gitweb?a=blobdiff_plain;ds=sidebyside;f=src%2Flib%2Fgscphost%2Finclude%2Fgscpmsgq.h;fp=src%2Flib%2Fgscphost%2Finclude%2Fgscpmsgq.h;h=6d2be8476522ad72b789e20d895e4940f1411a99;hb=c9783d8ea8b85d810483559e50dbf2297109e349;hp=0000000000000000000000000000000000000000;hpb=2f2369dfc58997659b3007b1cea68ad6bfc49a90;p=com%2Fgs-lite.git diff --git a/src/lib/gscphost/include/gscpmsgq.h b/src/lib/gscphost/include/gscpmsgq.h new file mode 100644 index 0000000..6d2be84 --- /dev/null +++ b/src/lib/gscphost/include/gscpmsgq.h @@ -0,0 +1,39 @@ +/* ------------------------------------------------ + Copyright 2014 AT&T Intellectual Property + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. + ------------------------------------------- */ +/* gscpmsgq.h defines the interface to a socket based message + * queue implementation for MacOSX which does not provide + * a System V message queueu but shared memory. + */ + +#ifndef GSCPMSGQ_H +#define GSCPMSGQ_H +#ifdef NOMSGQ + +#include +#include + +struct gscp_msgbuf { + long mtype; /* message type, must be > 0 */ + char mtext[1]; /* message data */ +}; + + +int gscp_msgget(key_t key, int msgflg); +ssize_t gscp_msgrcv(int msqid, struct gscp_msgbuf *msgp, size_t msgsz, long msgtyp, int msgflg); +int gscp_msgsnd(int msqid, struct gscp_msgbuf *msgp, size_t msgsz, int msgflg); + + +#endif +#endif