/* * OCILIB - C Driver for Oracle (C Wrapper for Oracle OCI) * * Website: http://www.ocilib.net * * Copyright (c) 2007-2023 Vincent ROGIER * * 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. */ #ifndef OCILIB_DEQUEUE_H_INCLUDED #define OCILIB_DEQUEUE_H_INCLUDED #include "types.h" OCI_SYM_LOCAL OCI_Dequeue * OcilibDequeueCreate ( OCI_TypeInfo *typinf, const otext *name ); OCI_SYM_LOCAL boolean OcilibDequeueFree ( OCI_Dequeue *dequeue ); OCI_SYM_LOCAL OCI_Agent * OcilibDequeueListen ( OCI_Dequeue *dequeue, int timeout ); OCI_SYM_LOCAL OCI_Msg * OcilibDequeueGetMessage ( OCI_Dequeue *dequeue ); OCI_SYM_LOCAL const otext * OcilibDequeueGetConsumer ( OCI_Dequeue *dequeue ); OCI_SYM_LOCAL boolean OcilibDequeueSetConsumer ( OCI_Dequeue *dequeue, const otext *consumer ); OCI_SYM_LOCAL const otext * OcilibDequeueGetCorrelation ( OCI_Dequeue *dequeue ); OCI_SYM_LOCAL boolean OcilibDequeueSetCorrelation ( OCI_Dequeue *dequeue, const otext *pattern ); OCI_SYM_LOCAL boolean OcilibDequeueGetRelativeMsgID ( OCI_Dequeue *dequeue, void *id, unsigned int *len ); OCI_SYM_LOCAL boolean OcilibDequeueSetRelativeMsgID ( OCI_Dequeue *dequeue, const void *id, unsigned int len ); OCI_SYM_LOCAL unsigned int OcilibDequeueGetVisibility ( OCI_Dequeue *dequeue ); OCI_SYM_LOCAL boolean OcilibDequeueSetVisibility ( OCI_Dequeue *dequeue, unsigned int visibility ); OCI_SYM_LOCAL unsigned int OcilibDequeueGetMode ( OCI_Dequeue *dequeue ); OCI_SYM_LOCAL boolean OcilibDequeueSetMode ( OCI_Dequeue *dequeue, unsigned int mode ); OCI_SYM_LOCAL unsigned int OcilibDequeueGetNavigation ( OCI_Dequeue *dequeue ); OCI_SYM_LOCAL boolean OcilibDequeueSetNavigation ( OCI_Dequeue *dequeue, unsigned int position ); OCI_SYM_LOCAL int OcilibDequeueGetWaitTime ( OCI_Dequeue *dequeue ); OCI_SYM_LOCAL boolean OcilibDequeueSetWaitTime ( OCI_Dequeue *dequeue, int timeout ); OCI_SYM_LOCAL boolean OcilibDequeueSetAgentList ( OCI_Dequeue *dequeue, OCI_Agent **consumers, unsigned int count ); OCI_SYM_LOCAL boolean OcilibDequeueSubscribe ( OCI_Dequeue *dequeue, unsigned int port, unsigned int timeout, POCI_NOTIFY_AQ callback ); OCI_SYM_LOCAL boolean OcilibDequeueUnsubscribe ( OCI_Dequeue *dequeue ); #endif /* OCILIB_DEQUEUE_H_INCLUDED */