Logo Search packages:      
Sourcecode: libgphoto2 version File versions  Download package

GPContext* gp_context_new ( void   ) 

Creates a new context.

To be used by the frontend.

a GPContext.

Definition at line 71 of file gphoto2-context.c.

References _GPContext::ref_count.

      GPContext *context;

      context = malloc (sizeof (GPContext));
      if (!context)
            return (NULL);
      memset (context, 0, sizeof (GPContext));

      context->ref_count = 1;

      return (context);

Generated by  Doxygen 1.6.0   Back to index