/*
  Copyright 1999-2011 ImageMagick Studio LLC, a non-profit organization
  dedicated to making software imaging solutions freely available.
  
  You may not use this file except in compliance with the License.
  obtain a copy of the License at
  
    http://www.imagemagick.org/script/license.php
  
  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.

  ImageMagick wand support methods.
*/
#ifndef _MAGICKWAND_WAND_H
#define _MAGICKWAND_WAND_H

#if defined(__cplusplus) || defined(c_plusplus)
extern "C" {
#endif

extern WandExport size_t
  AcquireWandId(void);

extern WandExport void
  DestroyWandIds(void),
  RelinquishWandId(const size_t);

#if defined(__cplusplus) || defined(c_plusplus)
}
#endif

#endif
