Home | History | Annotate | Download | only in ppapi_simple
      1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
      2 // Use of this source code is governed by a BSD-style license that can be
      3 // found in the LICENSE file.
      4 
      5 #include "ppapi/c/pp_instance.h"
      6 #include "ppapi/c/pp_module.h"
      7 
      8 #include "ppapi_simple/ps_instance.h"
      9 #include "ppapi_simple/ps_main.h"
     10 
     11 
     12 void* PSMainCreate(PP_Instance inst, PSMainFunc_t func) {
     13   PSInstance* pInst = new PSInstance(inst);
     14   pInst->SetMain(func);
     15   return pInst;
     16 }
     17