X-Git-Url: http://review.tizen.org/git/?a=blobdiff_plain;f=src%2Fat_sim.c;h=b6a3f127f61d5f3d82fb7d970c8a2253335239e8;hb=db9aa02c16add6a93eb4be710599365a892966b3;hp=e69de29bb2d1d6434b8b29ae775ad8c2e48c5391;hpb=37f7fe362fc9eebdcc153f699a52fc7463e68357;p=platform%2Fcore%2Ftelephony%2Ftel-plugin-at_standard.git diff --git a/src/at_sim.c b/src/at_sim.c index e69de29..b6a3f12 100644 --- a/src/at_sim.c +++ b/src/at_sim.c @@ -0,0 +1,61 @@ +/* + * tel-plugin-at_standard + * + * Copyright (c) 2012 Intel Corporation. All rights reserved. + * + * 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. + */ + +#include +#include +#include +#include + +#include + +#include +#include +#include +#include +#include + +#include "at_sim.h" + +gboolean at_sim_init(TcorePlugin *cp) +{ + CoreObject *co; + Server *server; + + co = tcore_sim_new(cp, NULL, NULL); + if (co == NULL) + return FALSE; + + server = tcore_plugin_ref_server(cp); + tcore_server_add_template_object(server, co); + + return TRUE; +} + +void at_sim_exit(TcorePlugin *cp) +{ + CoreObject *co; + + if (cp == NULL) + return; + + co = tcore_plugin_ref_core_object(cp, CORE_OBJECT_TYPE_SIM); + if (co == NULL) + return; + + tcore_object_free(co); +}